Merge pull request #1991 from vector-im/setup_user_defaults

Bug Fix - User defaults: the preset application language (if any) is ignored
This commit is contained in:
giomfo
2018-08-22 15:58:26 +02:00
committed by GitHub
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -4,6 +4,9 @@ Changes in 0.7.2 (2018-08-)
Improvements:
* Upgrade MatrixKit version (v0.8.1).
* Server Quota Notices in Riot (#1937).
Bug fix:
* User defaults: the preset application language (if any) is ignored.
Changes in 0.7.1 (2018-08-17)
===============================================
+2 -2
View File
@@ -400,6 +400,8 @@ NSString *const kAppDelegateNetworkStatusDidChangeNotification = @"kAppDelegateN
NSLog(@"MatrixSDK version: %@", MatrixSDKVersion);
NSLog(@"Build: %@\n", build);
NSLog(@"------------------------------\n");
[self setupUserDefaults];
// Set up runtime language and fallback by considering the userDefaults object shared within the application group.
NSUserDefaults *sharedUserDefaults = [MXKAppSettings standardAppSettings].sharedUserDefaults;
@@ -462,8 +464,6 @@ NSString *const kAppDelegateNetworkStatusDidChangeNotification = @"kAppDelegateN
_isAppForeground = NO;
[self setupUserDefaults];
// Configure our analytics. It will indeed start if the option is enabled
[MXSDKOptions sharedInstance].analyticsDelegate = [Analytics sharedInstance];
[DecryptionFailureTracker sharedInstance].delegate = [Analytics sharedInstance];