mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-03 22:55:44 +01:00
Stop preemptively generating screenshots for video stories
This commit is contained in:
committed by
Fedor Indutnyy
parent
f798bc999c
commit
54d4734f05
@@ -191,6 +191,30 @@ export function _cleanMessageData(data: MessageType): MessageType {
|
||||
return omit(attachment, ['data']);
|
||||
}
|
||||
|
||||
if (attachment.screenshotData) {
|
||||
assertDev(
|
||||
false,
|
||||
`_cleanMessageData/${logId}: Attachment ${index} had screenshotData field; deleting`
|
||||
);
|
||||
return omit(attachment, ['screenshotData']);
|
||||
}
|
||||
|
||||
if (attachment.screenshot?.data) {
|
||||
assertDev(
|
||||
false,
|
||||
`_cleanMessageData/${logId}: Attachment ${index} had screenshot.data field; deleting`
|
||||
);
|
||||
return omit(attachment, ['screenshot.data']);
|
||||
}
|
||||
|
||||
if (attachment.thumbnail?.data) {
|
||||
assertDev(
|
||||
false,
|
||||
`_cleanMessageData/${logId}: Attachment ${index} had thumbnail.data field; deleting`
|
||||
);
|
||||
return omit(attachment, ['thumbnail.data']);
|
||||
}
|
||||
|
||||
return attachment;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user