mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 10:28:20 +08:00
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:
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user