Skip to content

Commit 5cd6fd3

Browse files
authored
Merge pull request #1995 from nextcloud/fix/noid/present-login-view-after-token-revoked
fix(login): Present login screen after token revoked (and no other accounts configured)
2 parents d5cddf9 + d4e57c2 commit 5cd6fd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

NextcloudTalk/NCUserInterfaceController.m

+5-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,11 @@ - (void)presentLoggedOutInvalidCredentialsAlert
122122
UIAlertAction* okButton = [UIAlertAction
123123
actionWithTitle:NSLocalizedString(@"OK", nil)
124124
style:UIAlertActionStyleDefault
125-
handler:nil];
126-
125+
handler:^(UIAlertAction * _Nonnull action) {
126+
// Check the app state here, as this alert may have blocked the login view from being presented (if no other accounts are configured)
127+
[[NCConnectionController sharedInstance] checkAppState];
128+
}];
129+
127130
[alert addAction:okButton];
128131

129132
[_mainViewController presentViewController:alert animated:YES completion:nil];

0 commit comments

Comments
 (0)