From bd117bdf0d765855a6bd5ea6ad16420780b8cb07 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 3 Apr 2024 12:18:31 -0400 Subject: [PATCH] use `config.allow_local_presence` instead of `services()` Signed-off-by: strawberry --- src/database/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)