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