mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 18:59:12 +03:00
[merge] Fix NoticeItem compile
Change-Id: I536e759913715c0aa627fc60cda9a5453bc8a243
This commit is contained in:
parent
833bb110d8
commit
97d0dbcfb8
1 changed files with 2 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue