Visual unread mentions counter

This commit is contained in:
miruka
2020-03-22 23:55:48 -04:00
parent 367fff8f4a
commit ef2504ecae
6 changed files with 71 additions and 20 deletions

View File

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