Fix channels highlight (#3308)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-05-31 19:25:24 +06:00 committed by GitHub
parent dafe568778
commit d21cae9f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@
function isNew (item: Channel, docUpdates: Map<Ref<Doc>, DocUpdates>): boolean {
const docUpdate = docUpdates.get(item._id)
return docUpdate ? docUpdate.txes.length > 0 : (item.items ?? 0) > 0
return docUpdate ? docUpdate.txes.some((p) => p.isNew) : (item.items ?? 0) > 0
}
async function update (

View File

@ -68,7 +68,7 @@
function isNew (item: Channel, docUpdates: Map<Ref<Doc>, DocUpdates>): boolean {
const docUpdate = docUpdates.get(item._id)
return docUpdate ? docUpdate.txes.length > 0 : (item.items ?? 0) > 0
return docUpdate ? docUpdate.txes.some((p) => p.isNew) : (item.items ?? 0) > 0
}
async function update (