Commit 111b7116 authored by Syam Sundar K's avatar Syam Sundar K

Minor fix

parent 635b6c56
...@@ -46,11 +46,12 @@ class ProfilePresenter @Inject constructor (private val view: ProfileView, ...@@ -46,11 +46,12 @@ class ProfilePresenter @Inject constructor (private val view: ProfileView,
} }
} }
fun updateUserProfile(email: String, name: String, username: String, avatarUrl: String) { fun updateUserProfile(email: String, name: String, username: String, avatarUrl: String="") {
launchUI(strategy) { launchUI(strategy) {
view.showLoading() view.showLoading()
try { try {
val userAvatar = client.setAvatar(avatarUrl) if(avatarUrl!="")
client.setAvatar(avatarUrl)
val user = client.updateProfile(myselfId, email, name, username) val user = client.updateProfile(myselfId, email, name, username)
view.showProfileUpdateSuccessfullyMessage() view.showProfileUpdateSuccessfullyMessage()
loadUserProfile() loadUserProfile()
......
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