From 283d2235dc94a1341afa71e3e29f1226bec33777 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 1 Jun 2020 18:59:49 -0400 Subject: [PATCH] Don't wait for server to zero unread counters --- src/backend/backend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/backend.py b/src/backend/backend.py index 80a2ac12..97999b52 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -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()])