mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:11:08 -06:00
UX: also plays notification sounds in group channels (#27176)
Prior to this fix we were limiting this to 1:1 channels.
This commit is contained in:
parent
971b66e440
commit
5134e74e91
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user