mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Try to update account attributes every time we upgrade.
This commit is contained in:
parent
ed25f4748d
commit
3a5de59dcb
1 changed files with 9 additions and 0 deletions
|
@ -1215,6 +1215,15 @@ static NSTimeInterval launchStartedAt;
|
||||||
[self.udManager setup];
|
[self.udManager setup];
|
||||||
|
|
||||||
[self preheatDatabaseViews];
|
[self preheatDatabaseViews];
|
||||||
|
|
||||||
|
// Try to update account attributes every time we upgrade.
|
||||||
|
if ([self.tsAccountManager isRegistered]) {
|
||||||
|
AppVersion *appVersion = AppVersion.sharedInstance;
|
||||||
|
if (appVersion.lastAppVersion.length > 0
|
||||||
|
&& ![appVersion.lastAppVersion isEqualToString:appVersion.currentAppVersion]) {
|
||||||
|
[[self.tsAccountManager updateAccountAttributes] retainUntilComplete];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)preheatDatabaseViews
|
- (void)preheatDatabaseViews
|
||||||
|
|
Loading…
Reference in a new issue