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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (channel.chatable.group) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!this.currentUser.chat_sound) {
|
if (!this.currentUser.chat_sound) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,13 +122,6 @@ acceptance(
|
||||||
assert.deepEqual(await this.subject.play(channel), false);
|
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) {
|
test("not idle", async function (assert) {
|
||||||
const channel = buildDirectMessageChannel(getOwner(this));
|
const channel = buildDirectMessageChannel(getOwner(this));
|
||||||
resetIdle();
|
resetIdle();
|
||||||
|
|
Loading…
Reference in New Issue