fix an edge case where the isCallOngoing will always be true
This commit is contained in:
parent
62d730ea30
commit
d42088e37c
|
@ -78,6 +78,10 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|||
|
||||
SNAppearance.switchToSessionAppearance()
|
||||
|
||||
if Environment.shared?.callManager.wrappedValue?.currentCall == nil {
|
||||
UserDefaults.sharedLokiProject?.set(false, forKey: "isCallOngoing")
|
||||
}
|
||||
|
||||
// No point continuing if we are running tests
|
||||
guard !CurrentAppContext().isRunningTests else { return true }
|
||||
|
||||
|
@ -142,16 +146,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
|
|||
}
|
||||
}
|
||||
|
||||
func applicationDidReceiveMemoryWarning(_ application: UIApplication) {
|
||||
Logger.info("applicationDidReceiveMemoryWarning")
|
||||
}
|
||||
|
||||
func applicationWillTerminate(_ application: UIApplication) {
|
||||
DDLog.flushLog()
|
||||
|
||||
stopPollers()
|
||||
}
|
||||
|
||||
func applicationDidBecomeActive(_ application: UIApplication) {
|
||||
guard !CurrentAppContext().isRunningTests else { return }
|
||||
|
||||
|
|
Loading…
Reference in New Issue