Ensure we track message height change when long message loads
This commit is contained in:
parent
1632e19476
commit
86864279b2
1 changed files with 7 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue