mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-21 11:39:43 +00:00
Add NSUserDefaults synchronize when about to exit app for update
This commit is contained in:
@@ -510,8 +510,10 @@ static void uncaught_cxx_exception_handler(const BITCrashUncaughtCXXExceptionInf
|
||||
}
|
||||
|
||||
- (void)leavingAppSafely {
|
||||
if (self.isAppNotTerminatingCleanlyDetectionEnabled)
|
||||
if (self.isAppNotTerminatingCleanlyDetectionEnabled) {
|
||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:kBITAppWentIntoBackgroundSafely];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)appEnteredForeground {
|
||||
|
||||
Reference in New Issue
Block a user