Merge remote-tracking branch 'upstream/dev' into fix/theming-tweaks

pull/710/head
Morgan Pretty 3 years ago
commit f8b803a9db

@ -136,6 +136,10 @@ public final class SessionCallManager: NSObject, CallManagerProtocol {
func handleCallEnded() {
WebRTCSession.current = nil
UserDefaults.sharedLokiProject?.set(false, forKey: "isCallOngoing")
if CurrentAppContext().isInBackground() {
(UIApplication.shared.delegate as? AppDelegate)?.stopPollers()
DDLog.flushLog()
}
}
guard let call = currentCall else {

@ -33,6 +33,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
Cryptography.seedRandom()
AppVersion.sharedInstance()
AppEnvironment.shared.pushRegistrationManager.createVoipRegistryIfNecessary()
// Prevent the device from sleeping during database view async registration
// (e.g. long database upgrades).

@ -173,7 +173,7 @@ public enum PushRegistrationError: Error {
}
}
private func createVoipRegistryIfNecessary() {
public func createVoipRegistryIfNecessary() {
AssertIsOnMainThread()
guard voipRegistry == nil else { return }

Loading…
Cancel
Save