[fix #3127] fix wrong branch order in conditional statement

Fix bug where user could not go back to account selection after
tapping create new account

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Eric Dvorsak 2018-02-03 23:20:47 +01:00
parent 9f91557565
commit dc646b2ad3
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 2 additions and 2 deletions

View File

@ -292,8 +292,8 @@
(navigate-to-chat cofx chat-id false))
([cofx chat-id navigation-replace?]
(let [nav-fn (if navigation-replace?
#(navigation/navigate-to % :chat)
#(navigation/replace-view % :chat))]
#(navigation/replace-view % :chat)
#(navigation/navigate-to % :chat))]
(-> (preload-chat-data cofx chat-id)
(update :db nav-fn)))))