diff --git a/src/database/mod.rs b/src/database/mod.rs index 564f90a6..4ed278b4 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -275,7 +275,7 @@ impl KeyValueDatabase { }, }; - let presence_sender = if services().globals.allow_local_presence() { + let presence_sender = if config.allow_local_presence { let (presence_sender, presence_receiver) = mpsc::unbounded_channel(); Self::start_presence_handler(presence_receiver).await; Some(presence_sender)