From 3df63e59d389b4313bd08c3d59fd077b14035029 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 2 Feb 2023 14:59:23 -0600 Subject: [PATCH] Submit `media_ids` when creating a message --- app/soapbox/queries/chats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/queries/chats.ts b/app/soapbox/queries/chats.ts index ace2722a8..28fb403b3 100644 --- a/app/soapbox/queries/chats.ts +++ b/app/soapbox/queries/chats.ts @@ -235,7 +235,7 @@ const useChatActions = (chatId: string) => { const createChatMessage = useMutation( ( { chatId, content, mediaId }: { chatId: string, content: string, mediaId?: string }, - ) => api.post(`/api/v1/pleroma/chats/${chatId}/messages`, { content, media_id: mediaId }), + ) => api.post(`/api/v1/pleroma/chats/${chatId}/messages`, { content, media_id: mediaId, media_ids: [mediaId] }), { retry: false, onMutate: async (variables) => {