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,9 +183,15 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : AbsBaseMessageItem<H>
} }
// Render send state indicator // Render send state indicator
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.sendStateImageView.render(attributes.informationData.sendStateDecoration)
holder.eventSendingIndicator.isVisible = attributes.informationData.sendStateDecoration == SendStateDecoration.SENDING_MEDIA holder.eventSendingIndicator.isVisible = attributes.informationData.sendStateDecoration == SendStateDecoration.SENDING_MEDIA
} }
}
override fun unbind(holder: H) { override fun unbind(holder: H) {
attributes.avatarRenderer.clear(holder.avatarImageView) attributes.avatarRenderer.clear(holder.avatarImageView)