mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Invitation Notification design improvements and navigation (#1091)
* invitation notification * handling navigation to the invite view * improved invite notifications # Conflicts: # NSE/Sources/NotificationServiceExtension.swift * improved the design * improved the navigation handling on iPad vs iPhone * comment * code improvement * better doc
This commit is contained in:
@@ -155,8 +155,15 @@ class AppCoordinator: AppCoordinatorProtocol, AuthenticationCoordinatorDelegate,
|
||||
}
|
||||
|
||||
// Handle here the account switching when available
|
||||
|
||||
handleAppRoute(.room(roomID: roomID))
|
||||
|
||||
switch content.categoryIdentifier {
|
||||
case NotificationConstants.Category.message:
|
||||
handleAppRoute(.room(roomID: roomID))
|
||||
case NotificationConstants.Category.invite:
|
||||
handleAppRoute(.invites)
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
func handleInlineReply(_ service: NotificationManagerProtocol, content: UNNotificationContent, replyText: String) async {
|
||||
|
||||
@@ -19,4 +19,5 @@ import Foundation
|
||||
@MainActor
|
||||
protocol FlowCoordinatorProtocol {
|
||||
func handleAppRoute(_ appRoute: AppRoute, animated: Bool)
|
||||
func clearRoute(animated: Bool)
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ enum AppRoute {
|
||||
case roomList
|
||||
case room(roomID: String)
|
||||
case roomDetails(roomID: String)
|
||||
case invites
|
||||
}
|
||||
|
||||
struct AppRouterManager {
|
||||
|
||||
Reference in New Issue
Block a user