mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Do not retry initial sync on fatal errors
This commit is contained in:
@@ -1677,6 +1677,14 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
|
||||
NSString *myUserId = self.mxSession.myUser.userId;
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:kMXKErrorNotification object:error userInfo:myUserId ? @{kMXKErrorUserIdKey: myUserId} : nil];
|
||||
}
|
||||
|
||||
// If we encounter a fatal sync issue, we do not re-attempt sync as we cannot recover
|
||||
// from this problem, and the user needs to restart / re-install the app
|
||||
NSSet *fatalSyncErrors = [NSSet setWithArray:@[MXCryptoErrorDomain]];
|
||||
if ([fatalSyncErrors containsObject:error.domain])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if it is a network connectivity issue
|
||||
AFNetworkReachabilityManager *networkReachabilityManager = [AFNetworkReachabilityManager sharedManager];
|
||||
|
||||
Reference in New Issue
Block a user