[merge] Fix NoticeItem compile

Change-Id: I536e759913715c0aa627fc60cda9a5453bc8a243
This commit is contained in:
SpiritCroc 2022-09-28 10:51:25 +02:00
parent 833bb110d8
commit 97d0dbcfb8

View file

@ -45,15 +45,8 @@ abstract class NoticeItem : BaseEventItem<NoticeItem.Holder>(R.layout.item_timel
holder.view.setOnLongClickListener(attributes.itemLongClickListener)
holder.avatarImageView.onClick(attributes.avatarClickListener)
when (attributes.informationData.e2eDecoration) {
E2EDecoration.NONE -> {
holder.e2EDecorationView.render(null)
}
E2EDecoration.WARN_IN_CLEAR,
E2EDecoration.WARN_SENT_BY_UNVERIFIED,
E2EDecoration.WARN_SENT_BY_UNKNOWN -> {
holder.e2EDecorationView.render(RoomEncryptionTrustLevel.Warning)
}
if (attributes.informationData.messageLayout.showE2eDecoration) {
holder.e2EDecorationView.renderE2EDecoration(attributes.informationData.e2eDecoration)
}
(holder.view as? TimelineMessageLayoutRenderer).scOnlyRenderMessageLayout(attributes.informationData.messageLayout, this, holder)