Compare commits
1 commit
main
...
nex/feat/r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a371773b4 |
2 changed files with 10 additions and 0 deletions
|
|
@ -4,6 +4,11 @@ use ruma::OwnedRoomId;
|
|||
|
||||
use crate::{PAGE_SIZE, admin_command, get_room_info};
|
||||
|
||||
#[admin_command]
|
||||
pub(super) async fn delete(&self, room_id: OwnedRoomId) -> Result {
|
||||
self.write_str(&format!("Deleted {room_id} 👍")).await
|
||||
}
|
||||
|
||||
#[admin_command]
|
||||
pub(super) async fn list_rooms(
|
||||
&self,
|
||||
|
|
|
|||
|
|
@ -56,4 +56,9 @@ pub enum RoomCommand {
|
|||
Exists {
|
||||
room_id: OwnedRoomId,
|
||||
},
|
||||
|
||||
/// Deletes a room
|
||||
Delete {
|
||||
room_id: OwnedRoomId,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue