doc+check if user does not have local presence enabled if using outgoing presence

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-02-10 11:43:58 -05:00 committed by June
parent d069379d77
commit 7786553cda
2 changed files with 7 additions and 0 deletions

View file

@ -178,6 +178,11 @@ async fn main() {
If this is not the desired behaviour, please set a registration token.");
}
if config.allow_outgoing_presence && !config.allow_local_presence {
error!("Outgoing presence requires allowing local presence. Please enable \"allow_outgoing_presence\".");
return;
}
if config.allow_outgoing_presence {
warn!("! Outgoing federated presence is not spec compliant due to relying on PDUs and EDUs combined.\nOutgoing presence will not be very reliable due to this and any issues with federated outgoing presence are very likely attributed to this issue.\nIncoming presence and local presence are unaffected.");
}