Store room member read markers in model

This commit is contained in:
miruka
2020-05-31 00:38:48 -04:00
parent 160ce2643e
commit 7b5aa8ffe1
2 changed files with 19 additions and 0 deletions

View File

@@ -158,6 +158,8 @@ class Member(ModelItem):
power_level: int = 0
invited: bool = False
profile_updated: datetime = ZeroDate
last_read_event: str = ""
last_read_at: datetime = ZeroDate
def __lt__(self, other: "Member") -> bool:
"""Sort by power level, then by display name/user ID."""