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:
automated-signal
2026-03-05 17:49:11 -06:00
committed by GitHub
parent 7be16a08d9
commit 9f392b11f9

View File

@@ -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 () => {