mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Stop preemptively generating screenshots for video stories
This commit is contained in:
committed by
Fedor Indutnyy
parent
f798bc999c
commit
54d4734f05
@@ -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'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user