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:
parent
d069379d77
commit
7786553cda
2 changed files with 7 additions and 0 deletions
|
@ -244,6 +244,7 @@ enable_lightning_bolt = false
|
||||||
|
|
||||||
# Config option to control local (your server only) presence updates/requests. Defaults to false.
|
# Config option to control local (your server only) presence updates/requests. Defaults to false.
|
||||||
# Note that presence on conduwuit is very fast unlike Synapse's.
|
# Note that presence on conduwuit is very fast unlike Synapse's.
|
||||||
|
# If using outgoing presence, this MUST be enabled.
|
||||||
#allow_local_presence = false
|
#allow_local_presence = false
|
||||||
|
|
||||||
# Config option to control incoming federated presence updates/requests. Defaults to false.
|
# Config option to control incoming federated presence updates/requests. Defaults to false.
|
||||||
|
@ -254,6 +255,7 @@ enable_lightning_bolt = false
|
||||||
# Config option to control outgoing presence updates/requests. Defaults to false.
|
# Config option to control outgoing presence updates/requests. Defaults to false.
|
||||||
# This option sends presence updates to other servers, but does not receive any unless `allow_incoming_presence` is true.
|
# This option sends presence updates to other servers, but does not receive any unless `allow_incoming_presence` is true.
|
||||||
# Note that presence on conduwuit is very fast unlike Synapse's.
|
# Note that presence on conduwuit is very fast unlike Synapse's.
|
||||||
|
# If using outgoing presence, you MUST enable `allow_local_presence` as well.
|
||||||
#
|
#
|
||||||
# Warning: Outgoing federated presence is not spec compliant due to relying on PDUs and EDUs combined.
|
# Warning: Outgoing federated presence is not spec compliant due to relying on PDUs and EDUs combined.
|
||||||
# Outgoing presence will not be very reliable due to this and any issues with federated outgoing presence are very likely attributed to this issue.
|
# Outgoing presence will not be very reliable due to this and any issues with federated outgoing presence are very likely attributed to this issue.
|
||||||
|
|
|
@ -178,6 +178,11 @@ async fn main() {
|
||||||
If this is not the desired behaviour, please set a registration token.");
|
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 {
|
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.");
|
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.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue