Fix history events overwriting real lastEventDate

This commit is contained in:
miruka 2019-05-13 13:20:39 -04:00
parent 2da7214af1
commit 6af1c0e27c

View File

@ -272,6 +272,11 @@ class SignalManager(QObject):
) -> None:
for categ in self.backend.accounts[user_id].roomCategories:
if room_id in categ.rooms:
last = categ.rooms[room_id].lastEventDateTime
if last and last > event.dateTime:
continue
# Use setProperty to make sure to trigger model changed signals
categ.rooms.setProperty(
room_id, "lastEventDateTime", event.dateTime