Add functionality for managing user-owned chat rooms: Implement getOwnRooms and deleteOwnRoom methods in ChatController and ChatService, add corresponding API routes in chatRouter, and enhance MultiChatDialog for displaying and deleting owned rooms with localized messages. Update i18n files for new features.

This commit is contained in:
Torsten Schulz (local)
2026-03-04 23:22:16 +01:00
parent 2bc34acacf
commit 190cf626f9
8 changed files with 334 additions and 26 deletions

View File

@@ -9,3 +9,12 @@ export const fetchRoomCreateOptions = async () => {
const response = await apiClient.get("/api/chat/room-create-options");
return response.data;
};
export const fetchOwnRooms = async () => {
const response = await apiClient.get("/api/chat/my-rooms");
return response.data;
};
export const deleteOwnRoom = async (roomId) => {
await apiClient.delete(`/api/chat/my-rooms/${roomId}`);
};