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