mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Disable Local Push Notifications + Start Handling invite notifications (#882)
* disabled local pushes and fixed the issue with the image rendering * disabled local notifications for now and started implementing invite notificatons * disabled local notifications for now and started implementing invite notificatons * removed code that should not have changed * removed useless comment * refactored name for category * fixed a test * fix * fix for missing try await * pr comments
This commit is contained in:
@@ -507,15 +507,14 @@ extension AppCoordinator: NotificationManagerDelegate {
|
||||
func notificationTapped(_ service: NotificationManagerProtocol, content: UNNotificationContent) async {
|
||||
MXLog.info("[AppCoordinator] tappedNotification")
|
||||
|
||||
// We store the room identifier into the thread identifier
|
||||
guard !content.threadIdentifier.isEmpty,
|
||||
guard let roomID = content.roomID,
|
||||
content.receiverID != nil else {
|
||||
return
|
||||
}
|
||||
|
||||
// Handle here the account switching when available
|
||||
|
||||
handleAppRoute(.room(roomID: content.threadIdentifier))
|
||||
handleAppRoute(.room(roomID: roomID))
|
||||
}
|
||||
|
||||
func handleInlineReply(_ service: NotificationManagerProtocol, content: UNNotificationContent, replyText: String) async {
|
||||
|
||||
@@ -155,6 +155,8 @@ final class AppSettings {
|
||||
@UserPreference(key: UserDefaultsKeys.enableInAppNotifications, defaultValue: true, storageType: .userDefaults(store))
|
||||
var enableInAppNotifications
|
||||
|
||||
let enableLocalPushNotifications = false
|
||||
|
||||
/// Tag describing which set of device specific rules a pusher executes.
|
||||
@UserPreference(key: UserDefaultsKeys.pusherProfileTag, storageType: .userDefaults(store))
|
||||
var pusherProfileTag: String?
|
||||
|
||||
Reference in New Issue
Block a user