mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
Rely on the room's info to decide whether a call ringing notification is outdated and should be ignored as opposed to a time based approach.
This commit is contained in:
committed by
Stefan Ceriu
parent
6c8cb2bbe5
commit
690ff3caa6
@@ -63,11 +63,6 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
|
||||
|
||||
Target.nse.configure(logLevel: settings.logLevel, traceLogPacks: settings.traceLogPacks)
|
||||
|
||||
notificationHandler = NotificationHandler(settings: settings,
|
||||
contentHandler: contentHandler,
|
||||
notificationContent: mutableContent,
|
||||
tag: tag)
|
||||
|
||||
MXLog.info("\(tag) #########################################")
|
||||
|
||||
ExtensionLogger.logMemory(with: tag)
|
||||
@@ -82,12 +77,16 @@ class NotificationServiceExtension: UNNotificationServiceExtension {
|
||||
appHooks: appHooks,
|
||||
appSettings: settings)
|
||||
|
||||
notificationHandler = NotificationHandler(userSession: userSession,
|
||||
settings: settings,
|
||||
contentHandler: contentHandler,
|
||||
notificationContent: mutableContent,
|
||||
tag: tag)
|
||||
|
||||
ExtensionLogger.logMemory(with: tag)
|
||||
MXLog.info("\(tag) Configured user session")
|
||||
|
||||
await notificationHandler?.processEvent(eventID,
|
||||
roomID: roomID,
|
||||
userSession: userSession)
|
||||
await notificationHandler?.processEvent(eventID, roomID: roomID)
|
||||
} catch {
|
||||
MXLog.error("Failed creating user session with error: \(error)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user