From bdeaab7ca8c5c2c1738895853926dd1fd885d9c5 Mon Sep 17 00:00:00 2001 From: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> Date: Tue, 8 Feb 2022 22:55:44 +0600 Subject: [PATCH] Last view fix (#977) Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com> --- plugins/gmail-resources/src/components/Chats.svelte | 2 +- plugins/telegram-resources/src/components/Chat.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/gmail-resources/src/components/Chats.svelte b/plugins/gmail-resources/src/components/Chats.svelte index 14e427eb26..8c046561ec 100644 --- a/plugins/gmail-resources/src/components/Chats.svelte +++ b/plugins/gmail-resources/src/components/Chats.svelte @@ -51,7 +51,7 @@ { attachedTo: channelId }, (res) => { messages = res - notificationClient.updateLastView(channelId, channel._class) + notificationClient.updateLastView(channelId, channel._class, undefined, true) const accountsIds = new Set(messages.map((p) => p.modifiedBy as Ref)) updateAccountsQuery(accountsIds) }, diff --git a/plugins/telegram-resources/src/components/Chat.svelte b/plugins/telegram-resources/src/components/Chat.svelte index d45c100514..52d8c11134 100644 --- a/plugins/telegram-resources/src/components/Chat.svelte +++ b/plugins/telegram-resources/src/components/Chat.svelte @@ -62,7 +62,7 @@ (res) => { messages = res.reverse() if (channel !== undefined) { - notificationClient.updateLastView(channel._id, channel._class) + notificationClient.updateLastView(channel._id, channel._class, undefined, true) } const accountsIds = new Set(messages.map((p) => p.modifiedBy as Ref)) updateAccountsQuery(accountsIds)