[MXRestClient registerFallback] is no more an async method that makes a request to the home server to get the fallback URL.

It directly returns the register fallback URL
This commit is contained in:
manuroe 2015-02-24 15:59:12 +01:00
parent 72a841adaa
commit 04fe4f3ef5

View file

@ -261,12 +261,7 @@
// }];
// Currently no registration flow are supported, we switch directly to the fallback page
mxCurrentOperation = [mxHandler.mxRestClient registerFallback:^(NSString *fallback) {
[self showRegistrationFallBackView:fallback];
} failure:^(NSError *error) {
NSLog(@"[AuthenticationVC] Failed to get Register fallback: %@", error);
[self onFailureDuringMXOperation:error];
}];
[self showRegistrationFallBackView:[mxHandler.mxRestClient registerFallback]];
}
}