Added limited local read/unread tracking

This commit is contained in:
Emi Simpson
2020-04-09 18:03:12 -04:00
committed by miruka
parent b2cfc27ce2
commit 6ee20a2717
7 changed files with 44 additions and 18 deletions

View File

@@ -82,6 +82,7 @@ class Room(ModelItem):
last_event_date: datetime = ZeroDate
mentions: int = 0
unreads: int = 0
def __lt__(self, other: "Room") -> bool:
"""Sort by join state, then descending last event date, then name.