feat: Add admin command to delete sync tokens from a room

This commit is contained in:
Jade Ellis
2025-05-21 22:24:33 +01:00
parent 83396db5de
commit 873496388f
3 changed files with 63 additions and 2 deletions
+8 -1
View File
@@ -6,7 +6,7 @@ mod moderation;
use clap::Subcommand;
use conduwuit::Result;
use ruma::OwnedRoomId;
use ruma::{OwnedRoomId, OwnedRoomOrAliasId};
use self::{
alias::RoomAliasCommand, directory::RoomDirectoryCommand, info::RoomInfoCommand,
@@ -60,4 +60,11 @@ pub enum RoomCommand {
Exists {
room_id: OwnedRoomId,
},
/// - Delete all sync tokens for a room
PurgeSyncTokens {
/// Room ID or alias to purge sync tokens for
#[arg(value_parser)]
room: OwnedRoomOrAliasId,
},
}