mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-09-18 14:18:20 +03:00
Add func delete message
This commit is contained in:
@@ -52,6 +52,12 @@ const chatService = {
|
||||
async updateMessage(data: MessageUpdate): Promise<Message> {
|
||||
const response = await apiClient.put('/chats/message', data);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
async deleteMessage(messageId: string): Promise<void> {
|
||||
await apiClient.delete('/chats/message', {
|
||||
params: { message_id: messageId }
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user