1.4
This commit is contained in:
@@ -11,7 +11,7 @@ export const chatApi = {
|
||||
|
||||
getConversationDetail: (id: string) => api.get(`/conversations/${id}`),
|
||||
|
||||
updateGroup: (id: string, data: { name?: string; description?: string }) =>
|
||||
updateGroup: (id: string, data: { name?: string; description?: string; avatar_url?: string }) =>
|
||||
api.put(`/conversations/${id}`, data),
|
||||
|
||||
addMembers: (convId: string, userIds: string[]) =>
|
||||
@@ -23,6 +23,9 @@ export const chatApi = {
|
||||
leaveGroup: (convId: string) =>
|
||||
api.post(`/conversations/${convId}/leave`),
|
||||
|
||||
dissolveGroup: (convId: string) =>
|
||||
api.post(`/conversations/${convId}/dissolve`),
|
||||
|
||||
getMessages: (conversationId: string, before?: string, limit = 50) => {
|
||||
const params: Record<string, any> = { limit }
|
||||
if (before) params.before = before
|
||||
|
||||
Reference in New Issue
Block a user