This commit is contained in:
marlon-erler
2024-07-28 13:24:44 +02:00
parent d35f9472ca
commit 507a5d1067
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -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();
}
);