Integrations: Manage the error of no configured integrations server

This commit is contained in:
manuroe
2019-06-21 12:12:32 +02:00
parent 089835f3f4
commit 53afe41f9a
5 changed files with 28 additions and 4 deletions
@@ -18,6 +18,8 @@
#import "IntegrationManagerViewController.h"
#import "WidgetManager.h"
#import "AppDelegate.h"
#import "Riot-Swift.h"
NSString *const kIntegrationManagerMainScreen = nil;
@@ -87,8 +89,14 @@ NSString *const kIntegrationManagerAddIntegrationScreen = @"add_integ";
} failure:^(NSError *error) {
MXStrongifyAndReturnIfNil(self);
NSLog(@"[IntegraionManagerVS] Cannot open due to missing scalar token. Error: %@", error);
self->operation = nil;
[self stopActivityIndicator];
[self withdrawViewControllerAnimated:YES completion:^{
[[AppDelegate theDelegate] showErrorAsAlert:error];
}];
}];
}
}