fix minor bug with notification handling

This commit is contained in:
marlon-erler
2026-04-15 10:43:52 +00:00
parent 8bdd4db1be
commit 9fdc2e3768
3 changed files with 6 additions and 2 deletions
@@ -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;