fix minor bug with notification handling
This commit is contained in:
@@ -103,7 +103,7 @@ export default class ChatModel {
|
||||
|
||||
this.addMessage(chatMessage);
|
||||
|
||||
if (chatMessage.stringifiedFile != undefined) return;
|
||||
if (chatMessage.stringifiedFile) return;
|
||||
this.setReadStatus(true);
|
||||
};
|
||||
|
||||
|
||||
@@ -17,6 +17,8 @@ export default class NotificationViewModel {
|
||||
NotificationViewModel.createNotification(message);
|
||||
if (this.seenMessageIds.has(message.id)) return;
|
||||
|
||||
if (this.chatListViewModel.selectedChat.value == undefined) return;
|
||||
|
||||
const currentChat =
|
||||
this.chatListViewModel.selectedChat.value.chatModel.info
|
||||
.primaryChannel;
|
||||
|
||||
Reference in New Issue
Block a user