From 7577c9f001a3f5ee81396c63c158b87514947a8b Mon Sep 17 00:00:00 2001 From: timedout Date: Sun, 1 Nov 2026 04:54:39 +0000 Subject: [PATCH] feat: Remove force-device-list-updates This command has not been useful since conduwuit 0.4.6 or so --- src/admin/debug/commands.rs | 11 ----------- src/admin/debug/mod.rs | 4 ---- 2 files changed, 15 deletions(-) diff --git a/src/admin/debug/commands.rs b/src/admin/debug/commands.rs index 93575ba11..8d80c3bb8 100644 --- a/src/admin/debug/commands.rs +++ b/src/admin/debug/commands.rs @@ -27,17 +27,6 @@ impl crate::Context<'_> { self.write_str(&message).await } - pub(super) async fn force_device_list_updates(&self) -> Result { - // Force E2EE device list updates for all users - self.services - .users - .stream_local_users() - .for_each(async |user_id| self.services.users.mark_device_key_update(&user_id).await) - .await; - - write!(self, "Marked all devices for all users as having new keys to update").await - } - pub(super) async fn change_log_level(&self, filter: Option, reset: bool) -> Result { let handles = &["console"]; diff --git a/src/admin/debug/mod.rs b/src/admin/debug/mod.rs index dcea15fcb..a49b8766f 100644 --- a/src/admin/debug/mod.rs +++ b/src/admin/debug/mod.rs @@ -16,10 +16,6 @@ pub enum DebugCommand { message: Vec, }, - /// Forces device lists for all local and remote users to be updated (as - /// having new keys available) - ForceDeviceListUpdates, - /// Change tracing log level/filter on the fly /// /// This accepts the same format as the `log` config option.