use config.allow_local_presence instead of services()

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry authored and June committed 2024-04-03 12:52:46 -04:00
1 parent d6651ab422
commit bd117bdf0d
1 file changed
+1 -1
+1 -1
View File
@@ -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)