mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Clear notifications for fully read rooms using the event's timestamp instead of delivery date
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user