mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Clear notifications for fully read rooms using the event's timestamp instead of delivery date
This commit is contained in:
@@ -22,6 +22,10 @@ nonisolated extension UNNotificationContent {
|
||||
userInfo[NotificationConstants.UserInfoKey.eventIdentifier] as? String
|
||||
}
|
||||
|
||||
@objc var eventDate: Date? {
|
||||
userInfo[NotificationConstants.UserInfoKey.eventDate] as? Date
|
||||
}
|
||||
|
||||
@objc var pusherNotificationClientIdentifier: String? {
|
||||
userInfo[NotificationConstants.UserInfoKey.pusherNotificationClientIdentifier] as? String
|
||||
}
|
||||
@@ -59,6 +63,15 @@ nonisolated extension UNMutableNotificationContent {
|
||||
}
|
||||
}
|
||||
|
||||
override var eventDate: Date? {
|
||||
get {
|
||||
userInfo[NotificationConstants.UserInfoKey.eventDate] as? Date
|
||||
}
|
||||
set {
|
||||
userInfo[NotificationConstants.UserInfoKey.eventDate] = newValue
|
||||
}
|
||||
}
|
||||
|
||||
override var threadRootEventID: String? {
|
||||
get {
|
||||
userInfo[NotificationConstants.UserInfoKey.threadRootEventIdentifier] as? String
|
||||
|
||||
Reference in New Issue
Block a user