Last view fix (#977)

Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
Denis Bykhov 2022-02-08 22:55:44 +06:00 committed by GitHub
parent ce99f9051e
commit bdeaab7ca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
{ attachedTo: channelId }, { attachedTo: channelId },
(res) => { (res) => {
messages = 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<EmployeeAccount>)) const accountsIds = new Set(messages.map((p) => p.modifiedBy as Ref<EmployeeAccount>))
updateAccountsQuery(accountsIds) updateAccountsQuery(accountsIds)
}, },

View File

@ -62,7 +62,7 @@
(res) => { (res) => {
messages = res.reverse() messages = res.reverse()
if (channel !== undefined) { 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<EmployeeAccount>)) const accountsIds = new Set(messages.map((p) => p.modifiedBy as Ref<EmployeeAccount>))
updateAccountsQuery(accountsIds) updateAccountsQuery(accountsIds)