From 61f25e4f0f226be85d520870840c458425458595 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 25 Aug 2026 21:42:45 +0300 Subject: [PATCH] fix marking chat as read --- src/components/chat_view/chat_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/chat_view/chat_view.js b/src/components/chat_view/chat_view.js index 149bded2a..29b6c51a3 100644 --- a/src/components/chat_view/chat_view.js +++ b/src/components/chat_view/chat_view.js @@ -248,6 +248,7 @@ const Chat = { useUsersStore().addNewUsers({ ...result, data: data.account }) data.account = useUsersStore().findUser(data.account.id) this.chat = data + this.maxId = this.chat.lastMessage?.id } catch (e) { console.error('Error creating or getting a chat', e) this.errorLoadingChat = true @@ -255,10 +256,10 @@ const Chat = { } if (this.isConversation || this.chat) { + this.startFetching('Chat activated', true) this.$nextTick(() => { this.scrollDown({ forceRead: true }) }) - this.startFetching('Chat activated', true) } }, deactivate() {