Ensure we track message height change when long message loads

This commit is contained in:
Scott Nonnenberg 2019-10-17 10:19:41 -07:00 committed by Ken Powers
parent 1632e19476
commit 86864279b2

View file

@ -54,6 +54,7 @@ export type MessageType = {
quote?: { author: string };
received_at: number;
hasSignalAccount?: boolean;
bodyPending?: boolean;
attachments: Array<AttachmentType>;
sticker: {
data?: {
@ -531,6 +532,12 @@ function hasMessageHeightChanged(
return true;
}
const longMessageAttachmentLoaded =
previous.bodyPending && !message.bodyPending;
if (longMessageAttachmentLoaded) {
return true;
}
const firstAttachmentNoLongerPending =
previousAttachments[0] &&
previousAttachments[0].pending &&