mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-23 10:16:07 +00:00
Compare commits
1 Commits
renovate/h
...
nex/feat/r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a371773b4 |
@@ -4,6 +4,11 @@
|
|||||||
|
|
||||||
use crate::{PAGE_SIZE, admin_command, get_room_info};
|
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]
|
#[admin_command]
|
||||||
pub(super) async fn list_rooms(
|
pub(super) async fn list_rooms(
|
||||||
&self,
|
&self,
|
||||||
|
|||||||
@@ -56,4 +56,9 @@ pub enum RoomCommand {
|
|||||||
Exists {
|
Exists {
|
||||||
room_id: OwnedRoomId,
|
room_id: OwnedRoomId,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/// Deletes a room
|
||||||
|
Delete {
|
||||||
|
room_id: OwnedRoomId,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user