Commit c4a62ea8 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Fix wrong indentation.

parent aa269d78
......@@ -111,8 +111,8 @@ class LoginPresenter @Inject constructor(private val view: LoginView,
exception.message?.let {
view.showMessage(it)
}.ifNull {
view.showGenericErrorMessage()
}
view.showGenericErrorMessage()
}
}
}
} finally {
......
......@@ -50,16 +50,10 @@ class SignupPresenter @Inject constructor(private val view: SignupView,
view.showLoading()
try {
client.signup(
email,
name,
username,
password
) // TODO This function returns a user so should we save it?
client.login(
username,
password
) // TODO This function returns a user token so should we save it?
// TODO This function returns a user so should we save it?
client.signup(email, name, username, password)
// TODO This function returns a user token so should we save it?
client.login(username, password)
val me = client.me()
localRepository.save(LocalRepository.USERNAME_KEY, me.username)
registerPushToken()
......@@ -68,8 +62,8 @@ class SignupPresenter @Inject constructor(private val view: SignupView,
exception.message?.let {
view.showMessage(it)
}.ifNull {
view.showGenericErrorMessage()
}
view.showGenericErrorMessage()
}
} finally {
view.hideLoading()
......
......@@ -58,8 +58,8 @@ class TwoFAPresenter @Inject constructor(private val view: TwoFAView,
exception.message?.let {
view.showMessage(it)
}.ifNull {
view.showGenericErrorMessage()
}
view.showGenericErrorMessage()
}
}
} finally {
view.hideLoading()
......
......@@ -97,9 +97,7 @@ class ChatRoomPresenter @Inject constructor(private val view: ChatRoomView,
view.showMessage(it)
}.ifNull {
view.showGenericErrorMessage()
view.showGenericErrorMessage()
}
}
view.enableMessageInput()
}
}
......
......@@ -46,8 +46,8 @@ class PinnedMessagesPresenter @Inject constructor(private val view: PinnedMessag
view.showPinnedMessages(messageList)
view.hideLoading()
}.ifNull {
Timber.e("Couldn't find a room with id: $roomId at current server.")
}
Timber.e("Couldn't find a room with id: $roomId at current server.")
}
} catch (e: RocketChatException) {
Timber.e(e)
}
......
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