mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 21:26:57 +02:00
Bug Fix: Do not stop registration process when app is backgrounded.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user