From 507a5d1067558da97e059195c6a70e4558533d7e Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Sun, 28 Jul 2024 13:24:44 +0200 Subject: [PATCH] fix typo --- src/Model/Chat/chatModel.ts | 2 +- src/ViewModel/Chat/chatViewModel.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Model/Chat/chatModel.ts b/src/Model/Chat/chatModel.ts index 4b427bfd..58c3dfd1 100644 --- a/src/Model/Chat/chatModel.ts +++ b/src/Model/Chat/chatModel.ts @@ -174,7 +174,7 @@ export default class ChatModel { this.connectionModel.addChannel(this.info.primaryChannel); }; - markUnread = (): void => { + markRead = (): void => { this.info.hasUnreadMessages = false; this.storeInfo(); } diff --git a/src/ViewModel/Chat/chatViewModel.ts b/src/ViewModel/Chat/chatViewModel.ts index 33e51f40..3ef54094 100644 --- a/src/ViewModel/Chat/chatViewModel.ts +++ b/src/ViewModel/Chat/chatViewModel.ts @@ -38,7 +38,7 @@ export default class ChatViewModel { // view open = (): void => { this.chatListViewModel.openChat(this); - this.markUnread(); + this.markRead(); }; close = (): void => { @@ -66,9 +66,9 @@ export default class ChatViewModel { this.index.value = index; }; - markUnread = (): void => { + markRead = (): void => { this.hasUnreadMessages.value = false; - this.chatModel.markUnread(); + this.chatModel.markRead(); }; // load @@ -133,7 +133,7 @@ export default class ChatViewModel { chatModel.chatMessageHandlerManager.addHandler( (chatMessage: ChatMessage) => { this.messagePageViewModel.showChatMessage(chatMessage); - this.markUnread(); + this.markRead(); } );