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 33736fb8a2
commit 9b92a0ba8e
2 changed files with 4 additions and 1 deletions

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;
}