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

Update RoomMessagesAdapter.kt

parent 0b53d89b
...@@ -9,7 +9,7 @@ import android.widget.TextView ...@@ -9,7 +9,7 @@ import android.widget.TextView
import chat.rocket.android.R import chat.rocket.android.R
import chat.rocket.android.helper.DateTime import chat.rocket.android.helper.DateTime
import chat.rocket.android.widget.RocketChatAvatar import chat.rocket.android.widget.RocketChatAvatar
import chat.rocket.android.widget.helper.UserAvatarHelper import chat.rocket.android.widget.helper.AvatarHelper
import chat.rocket.android.widget.message.RocketChatMessageLayout import chat.rocket.android.widget.message.RocketChatMessageLayout
import chat.rocket.core.models.Message import chat.rocket.core.models.Message
import kotlinx.android.synthetic.main.item_room_message.view.* import kotlinx.android.synthetic.main.item_room_message.view.*
...@@ -29,8 +29,8 @@ class RoomMessagesAdapter(private val dataSet: List<Message>, private val hostna ...@@ -29,8 +29,8 @@ class RoomMessagesAdapter(private val dataSet: List<Message>, private val hostna
val username = message.user?.username val username = message.user?.username
if (username != null) { if (username != null) {
val placeholderDrawable = UserAvatarHelper.getTextDrawable(username, holder.userAvatar.context) val placeholderDrawable = AvatarHelper.getTextDrawable(username, holder.userAvatar.context)
holder.userAvatar.loadImage(UserAvatarHelper.getUri(hostname, username), placeholderDrawable) holder.userAvatar.loadImage(AvatarHelper.getUri(hostname, username), placeholderDrawable)
holder.username.text = context.getString(R.string.username, username) holder.username.text = context.getString(R.string.username, username)
} else { } else {
holder.userAvatar.visibility = View.GONE holder.userAvatar.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