From 5476e00b9b63508f632ca0b928fa7dc25596fbb0 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 1 Jul 2020 06:40:48 -0400 Subject: [PATCH] Fix missing parentheses in marker update condition --- src/backend/backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/backend.py b/src/backend/backend.py index 6774ecdb..1e879692 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -303,7 +303,7 @@ class Backend: room = self.models[client.user_id, "rooms"].get(room_id) local = room.local_unreads or room.local_highlights - if room and room.unreads or room.highlights or local: + if room and (room.unreads or room.highlights or local): room.unreads = 0 room.highlights = 0 room.local_unreads = False