use config.allow_local_presence instead of services()

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-03 12:18:31 -04:00 committed by June
parent d6651ab422
commit bd117bdf0d

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)