mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Self-verification: Do not display incoming self verification requests at the top of the Complete Security screen.
This commit is contained in:
+3
@@ -46,6 +46,7 @@ final class KeyVerificationSelfVerifyWaitViewModel: KeyVerificationSelfVerifyWai
|
||||
}
|
||||
|
||||
deinit {
|
||||
self.unregisterKeyVerificationManagerNewRequestNotification()
|
||||
}
|
||||
|
||||
// MARK: - Public
|
||||
@@ -101,9 +102,11 @@ final class KeyVerificationSelfVerifyWaitViewModel: KeyVerificationSelfVerifyWai
|
||||
|
||||
private func registerKeyVerificationManagerNewRequestNotification(for verificationManager: MXKeyVerificationManager) {
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(keyVerificationManagerNewRequestNotification(notification:)), name: .MXKeyVerificationManagerNewRequest, object: verificationManager)
|
||||
AppDelegate.the()?.handleSelfVerificationRequest = false
|
||||
}
|
||||
|
||||
private func unregisterKeyVerificationManagerNewRequestNotification() {
|
||||
AppDelegate.the()?.handleSelfVerificationRequest = true
|
||||
NotificationCenter.default.removeObserver(self, name: .MXKeyVerificationManagerNewRequest, object: nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user