mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 20:57:45 +02:00
Fix multiple channel read while data is updating (#5576)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
@@ -390,6 +390,7 @@ export async function readChannelMessages (
|
||||
const lastTimestamp = messages[messages.length - 1].createdOn ?? 0
|
||||
|
||||
if ((context.lastViewedTimestamp ?? 0) < lastTimestamp) {
|
||||
context.lastViewedTimestamp = lastTimestamp
|
||||
void client.update(context, { lastViewedTimestamp: lastTimestamp })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user