mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
FF to enable/disable focussing the event on notification tap
This commit is contained in:
@@ -347,6 +347,7 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
return
|
||||
}
|
||||
|
||||
let eventID = appSettings.focusEventOnNotificationTap ? content.eventID : nil
|
||||
if content.categoryIdentifier == NotificationConstants.Category.invite {
|
||||
if let userSession {
|
||||
userSession.clientProxy.roomsToAwait.insert(roomID)
|
||||
@@ -355,8 +356,8 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationFlowCoordinatorDeleg
|
||||
}
|
||||
handleAppRoute(.room(roomID: roomID, via: []))
|
||||
} else if appSettings.threadsEnabled, let threadRootEventID = content.threadRootEventID {
|
||||
handleAppRoute(.thread(roomID: roomID, threadRootEventID: threadRootEventID, focusEventID: content.eventID))
|
||||
} else if let eventID = content.eventID {
|
||||
handleAppRoute(.thread(roomID: roomID, threadRootEventID: threadRootEventID, focusEventID: eventID))
|
||||
} else if let eventID {
|
||||
handleAppRoute(.event(eventID: eventID, roomID: roomID, via: []))
|
||||
} else {
|
||||
handleAppRoute(.room(roomID: roomID, via: []))
|
||||
|
||||
Reference in New Issue
Block a user