Skip to content

A platform for community discussion. Free, open, simple.

UX: also plays notification sounds in group channels (#27176)

Joffrey JAFFEUX5134e74e9145
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-channel-notification-sound.js b/plugins/chat/assets/javascripts/discourse/services/chat-channel-notification-sound.js
index 5ef1bf35ec0..f580f337f82 100644
--- a/plugins/chat/assets/javascripts/discourse/services/chat-channel-notification-sound.js
+++ b/plugins/chat/assets/javascripts/discourse/services/chat-channel-notification-sound.js
@@ -20,10 +20,6 @@ export default class ChatChannelNotificationSound extends Service {
return false;
}
- if (channel.chatable.group) {
- return false;
- }
-
if (!this.currentUser.chat_sound) {
return false;
}
diff --git a/plugins/chat/test/javascripts/unit/services/chat-channel-notification-sound-test.js b/plugins/chat/test/javascripts/unit/services/chat-channel-notification-sound-test.js
index aba47decffb..b1e49772e92 100644
--- a/plugins/chat/test/javascripts/unit/services/chat-channel-notification-sound-test.js
+++ b/plugins/chat/test/javascripts/unit/services/chat-channel-notification-sound-test.js
@@ -122,13 +122,6 @@ acceptance(
assert.deepEqual(await this.subject.play(channel), false);
});
- test("group", async function (assert) {
- const channel = buildDirectMessageChannel(getOwner(this));
- channel.chatable.group = true;
-
- assert.deepEqual(await this.subject.play(channel), false);
- });
-
test("not idle", async function (assert) {
const channel = buildDirectMessageChannel(getOwner(this));
resetIdle();