use config.allow_local_presence
instead of services()
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
d6651ab422
commit
bd117bdf0d
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue