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)