FIX: prevents playing chat sound when in DnD (#19575)
I couldn't figure a sane way to test this, I'm open to suggestions.
This commit is contained in:
parent
c0b21bf9cf
commit
d54f347883
|
@ -19,6 +19,10 @@ export default {
|
||||||
|
|
||||||
withPluginApi("0.12.1", (api) => {
|
withPluginApi("0.12.1", (api) => {
|
||||||
api.registerDesktopNotificationHandler((data, siteSettings, user) => {
|
api.registerDesktopNotificationHandler((data, siteSettings, user) => {
|
||||||
|
if (user.isInDoNotDisturb()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!user.chat_sound) {
|
if (!user.chat_sound) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue