Clear notifications for fully read rooms using the event's timestamp instead of delivery date

This commit is contained in:
Stefan Ceriu
2026-10-06 15:40:24 +03:00
parent fc75f90ef5
commit 2182446684
8 changed files with 48 additions and 3 deletions
@@ -33,6 +33,7 @@ nonisolated struct NotificationContentBuilder {
switch notificationItem.event {
case .timeline(let event):
notificationContent.eventID = event.eventId()
notificationContent.eventDate = Date(timeIntervalSince1970: TimeInterval(event.timestamp()) / 1000)
case .invite, .none:
notificationContent.eventID = nil
}