DEV: cleanup chat desktop notification data (#28943)

Makes channel_id and is_direct_message_channel consistent across desktop notifications, which also removes the need to lookup the channel from Chat Notification Manager.
This commit is contained in:
David Battersby
2024-10-03 12:43:17 +04:00
committed by GitHub
parent ad8f46f4f1
commit 9eaf908e63
7 changed files with 11 additions and 19 deletions

View File

@ -85,7 +85,7 @@ module("Discourse Chat | Unit | chat-audio", function (hooks) {
this.currentUser.user_option.chat_header_indicator_preference =
"dm_and_mentions";
this.handleNotification({ isDirectMessageChannel: true });
this.handleNotification({ is_direct_message_channel: true });
assert.ok(this.playStub.calledOnce);
});
@ -94,7 +94,7 @@ module("Discourse Chat | Unit | chat-audio", function (hooks) {
this.currentUser.user_option.chat_header_indicator_preference =
"dm_and_mentions";
this.handleNotification({ isDirectMessageChannel: false });
this.handleNotification({ is_direct_message_channel: false });
assert.ok(this.playStub.notCalled);
});