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

Update ProfilePresenter.kt

parent 789ddbb4
......@@ -83,14 +83,14 @@ class ProfilePresenter @Inject constructor(
try {
user?.id?.let { id ->
retryIO { client.updateProfile(id, email, name, username) }
view.showProfileUpdateSuccessfullyMessage()
view.showProfile(
serverUrl.avatarUrl(user.username ?: ""),
name,
username,
email
)
}
view.showProfileUpdateSuccessfullyMessage()
view.showProfile(
serverUrl.avatarUrl(user?.username ?: ""),
name,
username,
email
)
} catch (exception: RocketChatException) {
exception.message?.let {
view.showMessage(it)
......
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