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

Update UserRenderer.kt

parent f9af22f3
...@@ -16,7 +16,7 @@ class UserRenderer(val user: User) { ...@@ -16,7 +16,7 @@ class UserRenderer(val user: User) {
fun showAvatar(rocketChatAvatarWidget: RocketChatAvatar, hostname: String) { fun showAvatar(rocketChatAvatarWidget: RocketChatAvatar, hostname: String) {
val username: String? = user.username val username: String? = user.username
if (username != null) { if (username != null) {
rocketChatAvatarWidget.loadImage(RocketChatUserAvatar(hostname, username).imageUri) rocketChatAvatarWidget.loadImage(RocketChatUserAvatar.getUri(hostname, username))
} else { } else {
rocketChatAvatarWidget.visibility = View.GONE rocketChatAvatarWidget.visibility = View.GONE
} }
......
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