Don't wait for server to zero unread counters

This commit is contained in:
miruka 2020-06-01 18:59:49 -04:00
parent 835d1c486f
commit 283d2235dc

View File

@ -272,8 +272,10 @@ class Backend:
room = self.models[client.user_id, "rooms"].get(room_id)
if room and room.unreads + room.highlights:
await client.update_receipt_marker(room_id, event_id)
room.unreads = 0
room.highlights = 0
await client.update_account_unread_counts()
await client.update_receipt_marker(room_id, event_id)
await asyncio.gather(*[update(c) for c in self.clients.values()])