Commit 13fd9ca9 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Update TwoFAPresenter.kt

parent 643999e8
...@@ -37,7 +37,10 @@ class TwoFAPresenter @Inject constructor(private val view: TwoFAView, ...@@ -37,7 +37,10 @@ class TwoFAPresenter @Inject constructor(private val view: TwoFAView,
navigator.toChatList() navigator.toChatList()
} catch (ex: RocketChatException) { } catch (ex: RocketChatException) {
view.onLoginError(ex.message) val errorMessage = ex.message
if (errorMessage != null) {
view.showMessage(errorMessage)
}
} finally { } finally {
view.hideLoading() view.hideLoading()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment