diff --git a/VideoCalls/AuthenticationViewController.m b/VideoCalls/AuthenticationViewController.m index 5bfe6c2f..b0fdb340 100644 --- a/VideoCalls/AuthenticationViewController.m +++ b/VideoCalls/AuthenticationViewController.m @@ -31,6 +31,9 @@ NSString * const kNCAuthTokenFlowEndpoint = @"/index.php/login/flo self = [super init]; if (self) { self.serverUrl = serverUrl; + if (@available(iOS 13.0, *)) { + self.modalPresentationStyle = ([[NCDatabaseManager sharedInstance] numberOfAccounts] == 0) ? UIModalPresentationFullScreen : UIModalPresentationAutomatic; + } } return self; diff --git a/VideoCalls/CallViewController.m b/VideoCalls/CallViewController.m index 89b4bfda..509ff1fc 100644 --- a/VideoCalls/CallViewController.m +++ b/VideoCalls/CallViewController.m @@ -81,6 +81,8 @@ typedef NS_ENUM(NSInteger, CallState) { return nil; } + self.modalPresentationStyle = UIModalPresentationFullScreen; + _room = room; _displayName = displayName; _isAudioOnly = audioOnly; diff --git a/VideoCalls/NCUserInterfaceController.m b/VideoCalls/NCUserInterfaceController.m index 29d47fe3..fdadaaef 100644 --- a/VideoCalls/NCUserInterfaceController.m +++ b/VideoCalls/NCUserInterfaceController.m @@ -12,6 +12,7 @@ #import "AuthenticationViewController.h" #import "LoginViewController.h" #import "NCConnectionController.h" +#import "NCDatabaseManager.h" #import "NCRoomsManager.h" #import "NCSettingsController.h" #import "JDStatusBarNotification.h" @@ -79,6 +80,9 @@ { _loginViewController = [[LoginViewController alloc] init]; _loginViewController.delegate = self; + if (@available(iOS 13.0, *)) { + _loginViewController.modalPresentationStyle = ([[NCDatabaseManager sharedInstance] numberOfAccounts] == 0) ? UIModalPresentationFullScreen : UIModalPresentationAutomatic; + } [_mainNavigationController presentViewController:_loginViewController animated:YES completion:nil]; }