chore: alter wording

This commit is contained in:
31a05b9c
2026-05-06 17:25:45 +00:00
committed by 31a05b9c-5ef6-4a9b-90f9-80241c8cf499
parent d600aed8db
commit b296720540
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1 +1 @@
Add `!admin users force-reject-invites` to clean invite spam Add `!admin users reject-all-invites` to clean invite spam
+2 -2
View File
@@ -471,7 +471,7 @@ pub(super) async fn list_invited_rooms(&self, user_id: String) -> Result {
} }
#[admin_command] #[admin_command]
pub(super) async fn force_reject_invites(&self, user_id: String) -> Result { pub(super) async fn reject_all_invites(&self, user_id: String) -> Result {
let user_id = parse_local_user_id(self.services, &user_id)?; let user_id = parse_local_user_id(self.services, &user_id)?;
assert!( assert!(
@@ -487,7 +487,7 @@ pub(super) async fn force_reject_invites(&self, user_id: String) -> Result {
.filter_map(async |(room_id, _)| { .filter_map(async |(room_id, _)| {
match leave_room(self.services, &user_id, &room_id, None).await { match leave_room(self.services, &user_id, &room_id, None).await {
| Err(ref e) => { | Err(ref e) => {
warn!(%user_id, "Failed to leave {room_id} remotely: {e}"); warn!(%user_id, "Failed to leave {room_id}: {e}");
Some(()) Some(())
}, },
| Ok(()) => None, | Ok(()) => None,
+5 -5
View File
@@ -166,14 +166,14 @@ pub enum UserCommand {
user_id: String, user_id: String,
}, },
/// Lists all the rooms (local and remote) that the specified user is /// Manually make a user reject all current invites
/// joined in RejectAllInvites {
ListJoinedRooms {
user_id: String, user_id: String,
}, },
/// Manually make a user reject all current invites /// Lists all the rooms (local and remote) that the specified user is
ForceRejectInvites { /// joined in
ListJoinedRooms {
user_id: String, user_id: String,
}, },