Try to update account attributes every time we upgrade.

This commit is contained in:
Matthew Chen 2018-12-19 15:26:34 -05:00
parent ed25f4748d
commit 3a5de59dcb
1 changed files with 9 additions and 0 deletions

View File

@ -1215,6 +1215,15 @@ static NSTimeInterval launchStartedAt;
[self.udManager setup];
[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