mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 07:10:02 +00:00
Last view fix (#977)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
ce99f9051e
commit
bdeaab7ca8
@ -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)
|
||||||
},
|
},
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user