diff --git a/server/src/channels/commands/save_messages.rs b/server/src/channels/commands/save_messages.rs index e23dbdc83..846b38e17 100644 --- a/server/src/channels/commands/save_messages.rs +++ b/server/src/channels/commands/save_messages.rs @@ -62,7 +62,7 @@ impl MessagesSaver { impl ServerCommand for SaveMessagesExecutor { async fn execute(&mut self, system: &SharedSystem, _command: SaveMessagesCommand) { system - .write() + .read() .persist_messages() .await .unwrap_or_else(|error| {