|
|
@ -649,6 +649,10 @@ NSString *const TSAccountManager_NeedsAccountAttributesUpdateKey = @"TSAccountMa
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (AnyPromise *)updateAccountAttributesIfNecessary {
|
|
|
|
- (AnyPromise *)updateAccountAttributesIfNecessary {
|
|
|
|
|
|
|
|
if (!self.isRegistered) {
|
|
|
|
|
|
|
|
return [AnyPromise promiseWithValue:@(1)];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
NSDate *_Nullable updateRequestDate =
|
|
|
|
NSDate *_Nullable updateRequestDate =
|
|
|
|
[self.dbConnection objectForKey:TSAccountManager_NeedsAccountAttributesUpdateKey
|
|
|
|
[self.dbConnection objectForKey:TSAccountManager_NeedsAccountAttributesUpdateKey
|
|
|
|
inCollection:TSAccountManager_UserAccountCollection];
|
|
|
|
inCollection:TSAccountManager_UserAccountCollection];
|
|
|
|