Stop preemptively generating screenshots for video stories
This commit is contained in:
parent
f798bc999c
commit
54d4734f05
6 changed files with 57 additions and 19 deletions
|
@ -1918,8 +1918,14 @@ function saveMessageSync(
|
|||
|
||||
if (attachments) {
|
||||
strictAssert(
|
||||
attachments.every(attachment => !attachment.data),
|
||||
'Attempting to save a hydrated message'
|
||||
attachments.every(
|
||||
attachment =>
|
||||
!attachment.data &&
|
||||
!attachment.screenshotData &&
|
||||
!attachment.screenshot?.data &&
|
||||
!attachment.thumbnail?.data
|
||||
),
|
||||
'Attempting to save a message with binary attachment data'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue