mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Ensure we track message height change when long message loads
This commit is contained in:
committed by
Ken Powers
parent
1632e19476
commit
86864279b2
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user