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 };
|
quote?: { author: string };
|
||||||
received_at: number;
|
received_at: number;
|
||||||
hasSignalAccount?: boolean;
|
hasSignalAccount?: boolean;
|
||||||
|
bodyPending?: boolean;
|
||||||
attachments: Array<AttachmentType>;
|
attachments: Array<AttachmentType>;
|
||||||
sticker: {
|
sticker: {
|
||||||
data?: {
|
data?: {
|
||||||
|
@ -531,6 +532,12 @@ function hasMessageHeightChanged(
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const longMessageAttachmentLoaded =
|
||||||
|
previous.bodyPending && !message.bodyPending;
|
||||||
|
if (longMessageAttachmentLoaded) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
const firstAttachmentNoLongerPending =
|
const firstAttachmentNoLongerPending =
|
||||||
previousAttachments[0] &&
|
previousAttachments[0] &&
|
||||||
previousAttachments[0].pending &&
|
previousAttachments[0].pending &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue