Content in bubbles -> don't show element send state (we have SC one)

This commit is contained in:
SpiritCroc 2021-03-14 11:17:14 +01:00
parent ead1258e2a
commit a64429fcb6
1 changed files with 8 additions and 2 deletions

View File

@ -183,8 +183,14 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : AbsBaseMessageItem<H>
}
// Render send state indicator
holder.sendStateImageView.render(attributes.informationData.sendStateDecoration)
holder.eventSendingIndicator.isVisible = attributes.informationData.sendStateDecoration == SendStateDecoration.SENDING_MEDIA
if (contentInBubble) {
// Bubbles have their own decoration in the anonymous read receipt (in the message footer)
holder.sendStateImageView.render(SendStateDecoration.NONE)
holder.eventSendingIndicator.isVisible = false
} else {
holder.sendStateImageView.render(attributes.informationData.sendStateDecoration)
holder.eventSendingIndicator.isVisible = attributes.informationData.sendStateDecoration == SendStateDecoration.SENDING_MEDIA
}
}
override fun unbind(holder: H) {