mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 11:50:56 +00:00
[UBERF-41] Additional chat notification fixes (#3633)
* [UBERF-41] Additional chat notification fixes Signed-off-by: Oleg Solodkov <oleg.solodkov@xored.com> * [UBERF-41] Reverted a change Signed-off-by: Oleg Solodkov <oleg.solodkov@xored.com> --------- Signed-off-by: Oleg Solodkov <oleg.solodkov@xored.com>
This commit is contained in:
parent
72c026d505
commit
15cb4409b6
@ -106,6 +106,7 @@
|
||||
if (space === undefined) return -1
|
||||
const docUpdate = docUpdates.get(space)
|
||||
const lastView = docUpdate?.txes?.findLast((tx) => !tx.isNew)
|
||||
if (!docUpdate?.txes.some((tx) => tx.isNew)) return -1
|
||||
if (docUpdate === undefined || lastView === undefined) return -1
|
||||
for (let index = 0; index < messages.length; index++) {
|
||||
const message = messages[index]
|
||||
|
Loading…
Reference in New Issue
Block a user