From ab1eb8e32c012782a6e40816a2f753386fb3f621 Mon Sep 17 00:00:00 2001 From: Nikita Konev Date: Tue, 24 Dec 2024 19:02:22 +0300 Subject: [PATCH] Auto set message is read in case no startingFromItemId --- frontend/src/MessageList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/MessageList.vue b/frontend/src/MessageList.vue index 4d1c7647c..681e6a534 100644 --- a/frontend/src/MessageList.vue +++ b/frontend/src/MessageList.vue @@ -267,7 +267,7 @@ } this.updateTopAndBottomIds(); - if (this.isMobile() && this.items.length) { + if (!startingFromItemId && this.items.length) { axios.put(`/api/chat/${this.chatId}/message/read/${this.startingFromItemIdBottom}`, null, { signal: this.requestAbortController.signal })