Fix issue with the changelog conversation

This commit is contained in:
Mario Danic 2019-12-24 23:13:13 +01:00 committed by Mario Đanić
parent b2ba532e00
commit dcb4fa0eea

View File

@ -90,7 +90,7 @@ class MagicIncomingTextMessageViewHolder(incomingView: View) : MessageHolders
messageUserAvatarView!!.visibility = View.VISIBLE messageUserAvatarView!!.visibility = View.VISIBLE
if (message.actorType == "guests") { if (message.actorType == "guests") {
// do nothing, avatar is set // do nothing, avatar is set
} else if (message.actorType == "bots" && message.actorType == "changelog") { } else if (message.actorType == "bots" && message.actorId == "changelog") {
val layers = arrayOfNulls<Drawable>(2) val layers = arrayOfNulls<Drawable>(2)
layers[0] = context.getDrawable(R.drawable.ic_launcher_background) layers[0] = context.getDrawable(R.drawable.ic_launcher_background)
layers[1] = context.getDrawable(R.drawable.ic_launcher_foreground) layers[1] = context.getDrawable(R.drawable.ic_launcher_foreground)