Fix missing parentheses in marker update condition

This commit is contained in:
miruka 2020-07-01 06:40:48 -04:00
parent 3933615f67
commit 5476e00b9b

View File

@ -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