mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Switch all state machine route mappints from matching (event, fromState) to (fromState, event)
This commit is contained in:
committed by
Stefan Ceriu
parent
e4788e615f
commit
677ed367e1
@@ -104,8 +104,8 @@ class AppCoordinatorStateMachine {
|
||||
|
||||
// Transitions with associated values need to be handled through `addRouteMapping`
|
||||
stateMachine.addRouteMapping { event, fromState, _ in
|
||||
switch (event, fromState) {
|
||||
case (.signOut(let isSoft, let disableAppLock), _):
|
||||
switch (fromState, event) {
|
||||
case (_, .signOut(let isSoft, let disableAppLock)):
|
||||
return .signingOut(isSoft: isSoft, disableAppLock: disableAppLock)
|
||||
default:
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user