mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Only register for notifications when the setting is enabled. (#2819)
This commit is contained in:
@@ -98,7 +98,7 @@ final class NotificationManager: NSObject, NotificationManagerProtocol {
|
||||
Task { [weak self] in
|
||||
guard let self else { return }
|
||||
|
||||
if await notificationCenter.authorizationStatus() == .authorized {
|
||||
if await notificationCenter.authorizationStatus() == .authorized, appSettings.enableNotifications {
|
||||
await MainActor.run { [weak self] in
|
||||
self?.delegate?.registerForRemoteNotifications()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user