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 3643137017
commit 65cbdf17e8
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;
}