Fix a crash on reactions bottom sheet

This commit is contained in:
Benoit Marty 2021-12-14 13:26:03 +01:00
parent 0411291515
commit 1961309458

View file

@ -25,6 +25,7 @@ import im.vector.app.R
import im.vector.app.core.epoxy.ClickListener
import im.vector.app.core.epoxy.VectorEpoxyHolder
import im.vector.app.core.epoxy.onClick
import im.vector.app.core.epoxy.util.preventMutation
/**
* Item displaying an emoji reaction (single line with emoji, author, time)
@ -46,7 +47,7 @@ abstract class ReactionInfoSimpleItem : EpoxyModelWithHolder<ReactionInfoSimpleI
override fun bind(holder: Holder) {
super.bind(holder)
holder.emojiReactionView.text = reactionKey
holder.emojiReactionView.text = reactionKey.preventMutation()
holder.displayNameView.text = authorDisplayName
timeStamp?.let {
holder.timeStampView.text = it