feat(web): add banned users section in chat info moderation
Some checks failed
CI / test (push) Failing after 2m12s

This commit is contained in:
2026-03-08 21:26:10 +03:00
parent 2f6aa86cc9
commit 775236b483
5 changed files with 103 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import { http } from "./http";
import type {
Chat,
ChatAttachment,
ChatBan,
ChatDetail,
ChatInviteLink,
ChatMember,
@@ -299,6 +300,11 @@ export async function listChatMembers(chatId: number): Promise<ChatMember[]> {
return data;
}
export async function listChatBans(chatId: number): Promise<ChatBan[]> {
const { data } = await http.get<ChatBan[]>(`/chats/${chatId}/bans`);
return data;
}
export async function updateChatTitle(chatId: number, title: string): Promise<Chat> {
const { data } = await http.patch<Chat>(`/chats/${chatId}/title`, { title });
return data;