Complete Security: Make sure the authentication flow display it if auth is not complete yet

The complete security flow can be unfortunately triggered from 2 places: AuthVC and MasterTabBarC.

On a fresh app installation, during authentication, it was unexpectedly displayed from MasterTabBarC. This prevented authentication flow to complete. The app stayed on the launching animation.

This commit fixes this race.
This commit is contained in:
manuroe
2020-09-25 13:06:34 +02:00
parent 6c4c2d97b6
commit d57edd7563
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -1032,7 +1032,9 @@
- (void)presentVerifyCurrentSessionAlertIfNeededWithSession:(MXSession*)session
{
if (RiotSettings.shared.hideVerifyThisSessionAlert || self.reviewSessionAlertHasBeenDisplayed)
if (RiotSettings.shared.hideVerifyThisSessionAlert
|| self.reviewSessionAlertHasBeenDisplayed
|| self.authenticationInProgress)
{
return;
}