Change klippy window behavour, Fix user management behavour, clean up search server page

This commit is contained in:
2026-03-08 00:00:17 +01:00
parent 90f067e662
commit d20509566d
56 changed files with 1783 additions and 489 deletions

View File

@@ -130,9 +130,9 @@ export class AdminPanelComponent {
return;
this.store.dispatch(
RoomsActions.updateRoom({
RoomsActions.updateRoomSettings({
roomId: room.id,
changes: {
settings: {
name: this.roomName,
description: this.roomDescription,
isPrivate: this.isPrivate(),
@@ -168,7 +168,8 @@ export class AdminPanelComponent {
/** Remove a user's ban entry. */
unbanUser(ban: BanEntry): void {
this.store.dispatch(UsersActions.unbanUser({ oderId: ban.oderId }));
this.store.dispatch(UsersActions.unbanUser({ roomId: ban.roomId,
oderId: ban.oderId }));
}
/** Show the delete-room confirmation dialog. */
@@ -203,7 +204,7 @@ export class AdminPanelComponent {
return this.onlineUsers().filter(user => user.id !== me?.id && user.oderId !== me?.oderId);
}
/** Change a member's role and broadcast the update to all peers. */
/** Change a member's role and notify connected peers. */
changeRole(user: User, role: 'admin' | 'moderator' | 'member'): void {
const roomId = this.currentRoom()?.id;
@@ -218,23 +219,13 @@ export class AdminPanelComponent {
});
}
/** Kick a member from the server and broadcast the action to peers. */
/** Kick a member from the server. */
kickMember(user: User): void {
this.store.dispatch(UsersActions.kickUser({ userId: user.id }));
this.webrtc.broadcastMessage({
type: 'kick',
targetUserId: user.id,
kickedBy: this.currentUser()?.id
});
}
/** Ban a member from the server and broadcast the action to peers. */
/** Ban a member from the server. */
banMember(user: User): void {
this.store.dispatch(UsersActions.banUser({ userId: user.id }));
this.webrtc.broadcastMessage({
type: 'ban',
targetUserId: user.id,
bannedBy: this.currentUser()?.id
});
}
}