Merge branch 'develop' into convert_to_coordinators

# Conflicts:
#	CHANGES.rst
#	Riot/Modules/TabBar/MasterTabBarController.h
#	Riot/Modules/TabBar/MasterTabBarController.m
This commit is contained in:
SBiOSoftWhare
2020-09-24 11:37:24 +02:00
149 changed files with 6123 additions and 219 deletions
+16 -1
View File
@@ -31,7 +31,7 @@
#import "Riot-Swift.h"
@interface MasterTabBarController ()
@interface MasterTabBarController () <AuthenticationViewControllerDelegate>
{
// Array of `MXSession` instances.
NSMutableArray *mxSessionArray;
@@ -79,6 +79,8 @@
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
_authenticationInProgress = NO;
// Note: UITabBarViewController shoud not be embed in a UINavigationController (https://github.com/vector-im/riot-ios/issues/3086)
[self vc_removeBackTitle];
@@ -418,6 +420,7 @@
if (!self.authViewController && !isAuthViewControllerPreparing)
{
isAuthViewControllerPreparing = YES;
_authenticationInProgress = YES;
[self resetReviewSessionsFlags];
@@ -464,6 +467,7 @@
if (!self.authViewController && !isAuthViewControllerPreparing)
{
isAuthViewControllerPreparing = YES;
_authenticationInProgress = YES;
[[AppDelegate theDelegate] restoreInitialDisplay:^{
@@ -697,6 +701,9 @@
_authViewController = segue.destinationViewController;
isAuthViewControllerPreparing = NO;
// Listen to the end of the authentication flow
_authViewController.authVCDelegate = self;
authViewControllerObserver = [[NSNotificationCenter defaultCenter] addObserverForName:kMXKAccountManagerDidAddAccountNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notif) {
_authViewController = nil;
@@ -1164,4 +1171,12 @@
}
}
#pragma mark - AuthenticationViewControllerDelegate
- (void)authenticationViewControllerDidDismiss:(AuthenticationViewController *)authenticationViewController
{
_authenticationInProgress = NO;
[self.masterTabBarDelegate masterTabBarControllerDidCompleteAuthentication:self];
}
@end