BF: Registration: email or phone number is no more skippable

#2140

Note: There is no more conditions linked to kMXLoginFlowTypeRecaptcha in the code, which makes it look more flexible.
This commit is contained in:
manuroe 2018-12-28 09:19:14 +01:00
parent bf418edf03
commit 8f9af0ea1f

View file

@ -966,7 +966,7 @@
for (MXLoginFlow *loginFlow in currentSession.flows) for (MXLoginFlow *loginFlow in currentSession.flows)
{ {
if ([loginFlow.stages indexOfObject:kMXLoginFlowTypeEmailIdentity] == NSNotFound if ([loginFlow.stages indexOfObject:kMXLoginFlowTypeEmailIdentity] == NSNotFound
&& [loginFlow.stages indexOfObject:kMXLoginFlowTypeEmailCode] == NSNotFound) && [loginFlow.stages indexOfObject:kMXLoginFlowTypeMSISDN] == NSNotFound)
{ {
// There is a flow with no 3pids // There is a flow with no 3pids
return NO; return NO;