Fixes #4714 - Flickering voice message cells while being sent.

This commit is contained in:
Stefan Ceriu
2021-08-18 13:04:10 +03:00
committed by Stefan Ceriu
parent dac0e29adf
commit 3c650f36db
4 changed files with 10 additions and 6 deletions
+8 -3
View File
@@ -2383,11 +2383,16 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
}
else if (bubbleData.attachment.type == MXKAttachmentTypeVoiceMessage)
{
if (bubbleData.isPaginationFirstBubble) {
if (bubbleData.isPaginationFirstBubble)
{
cellViewClass = VoiceMessageWithPaginationTitleBubbleCell.class;
} else if (bubbleData.shouldHideSenderInformation) {
}
else if (bubbleData.shouldHideSenderInformation)
{
cellViewClass = VoiceMessageWithoutSenderInfoBubbleCell.class;
} else {
}
else
{
cellViewClass = VoiceMessageBubbleCell.class;
}
}