Re-add local highlights similar to 0.5.0

This commit is contained in:
miruka
2020-06-26 05:58:43 -04:00
parent aa8dbce3a7
commit 7f66ebb786
7 changed files with 35 additions and 13 deletions

View File

@@ -283,9 +283,10 @@ class Backend:
"""
async def update(client: MatrixClient) -> None:
room = self.models[client.user_id, "rooms"].get(room_id)
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 room.local_unreads:
if room and room.unreads or room.highlights or local:
room.unreads = 0
room.highlights = 0
room.local_unreads = False