Fix sending of at-mentions

This commit is contained in:
Scott Nonnenberg 2023-04-11 09:44:50 -07:00 committed by GitHub
parent 76b9d07acf
commit 5574b08f4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,7 +119,7 @@ export type OwnProps = Readonly<{
conversationId: string, conversationId: string,
options: { options: {
draftAttachments?: ReadonlyArray<AttachmentDraftType>; draftAttachments?: ReadonlyArray<AttachmentDraftType>;
mentions?: ReadonlyArray<DraftBodyRangeMention>; draftBodyRanges?: ReadonlyArray<DraftBodyRangeMention>;
message?: string; message?: string;
timestamp?: number; timestamp?: number;
voiceNoteAttachment?: InMemoryAttachmentDraftType; voiceNoteAttachment?: InMemoryAttachmentDraftType;
@ -313,7 +313,7 @@ export function CompositionArea({
emojiButtonRef.current?.close(); emojiButtonRef.current?.close();
sendMultiMediaMessage(conversationId, { sendMultiMediaMessage(conversationId, {
draftAttachments, draftAttachments,
mentions, draftBodyRanges: mentions,
message, message,
timestamp, timestamp,
}); });