Bug Fix: Do not stop registration process when app is backgrounded.

This commit is contained in:
giomfo
2016-04-05 15:31:52 +02:00
parent 92f1a992d3
commit 3feb915aeb
4 changed files with 34 additions and 28 deletions
+16 -1
View File
@@ -195,6 +195,12 @@
[tap setDelegate:self];
[createNewRoomImageView addGestureRecognizer:tap];
}
// Check whether we're not logged in
if (![MXKAccountManager sharedManager].accounts.count)
{
[self showAuthenticationScreen];
}
}
- (void)viewDidAppear:(BOOL)animated
@@ -215,7 +221,7 @@
}
}
- (void) viewDidLayoutSubviews
- (void)viewDidLayoutSubviews
{
[super viewDidLayoutSubviews];
@@ -236,6 +242,15 @@
#pragma mark -
- (void)showAuthenticationScreen
{
[[AppDelegate theDelegate] restoreInitialDisplay:^{
[self performSegueWithIdentifier:@"showAuth" sender:self];
}];
}
- (void)displayWithSession:(MXSession *)mxSession
{
[super addMatrixSession:mxSession];