From fedcc17c443d857b205df79b8cd3d16f881c16cf Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 26 Jun 2020 16:26:15 -0400 Subject: [PATCH] Correctly clear room local highlights --- src/backend/backend.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backend/backend.py b/src/backend/backend.py index 2cbefbfd..0750a51b 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -287,9 +287,10 @@ class Backend: local = room.local_unreads or room.local_highlights if room and room.unreads or room.highlights or local: - room.unreads = 0 - room.highlights = 0 - room.local_unreads = False + room.unreads = 0 + room.highlights = 0 + room.local_unreads = False + room.local_highlights = False await client.update_account_unread_counts() await client.update_receipt_marker(room_id, event_id)