Submit `media_ids` when creating a message

environments/review-chat-compo-mzhk1s/deployments/2500
Alex Gleason 2 years ago
parent 1b8d118217
commit 3df63e59d3
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -235,7 +235,7 @@ const useChatActions = (chatId: string) => {
const createChatMessage = useMutation(
(
{ chatId, content, mediaId }: { chatId: string, content: string, mediaId?: string },
) => api.post<IChatMessage>(`/api/v1/pleroma/chats/${chatId}/messages`, { content, media_id: mediaId }),
) => api.post<IChatMessage>(`/api/v1/pleroma/chats/${chatId}/messages`, { content, media_id: mediaId, media_ids: [mediaId] }),
{
retry: false,
onMutate: async (variables) => {

Loading…
Cancel
Save