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