wip add and change password

+ changed on_click
This commit is contained in:
simplonco
2023-01-14 23:05:01 +01:00
parent a060ddf4e9
commit 0496b34577
7 changed files with 45 additions and 10 deletions

View File

@@ -302,6 +302,13 @@ export class ChatController {
const room_name = await this.chatService.getCurrentRoomName(req.user.username);
const room = await this.chatService.getRoomByName(room_name);
const users = room.users;
let index = users.indexOf(req.user.username);
if (index > -1)
{
users.splice(index, 1);
}
res.status(HttpStatus.OK).json({ users: users });
printCaller("- out ");
}