mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 00:07:56 +01:00
Fix view once media send to not include message body or bodyRanges
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
@@ -659,13 +659,13 @@ function sendMultiMediaMessage(
|
||||
|
||||
const {
|
||||
draftAttachments,
|
||||
bodyRanges,
|
||||
isViewOnce,
|
||||
message = '',
|
||||
timestamp = Date.now(),
|
||||
voiceNoteAttachment,
|
||||
} = options;
|
||||
|
||||
const { message = '', bodyRanges } = isViewOnce ? {} : options;
|
||||
|
||||
const state = getState();
|
||||
|
||||
await withPreSendChecks(conversationId, options, dispatch, async () => {
|
||||
|
||||
Reference in New Issue
Block a user