Add account total unread/mentions indicator

This commit is contained in:
miruka
2020-05-01 04:46:08 -04:00
parent 9ebd8644c8
commit 9f7d30f248
6 changed files with 26 additions and 7 deletions

View File

@@ -38,6 +38,8 @@ class Account(ModelItem):
max_upload_size: int = 0
profile_updated: datetime = ZeroDate
first_sync_done: bool = False
total_unread: int = 0
total_mentions: int = 0
def __lt__(self, other: "Account") -> bool:
"""Sort by user ID."""