enable allow_federation config by default

We inherited the disabled-by-default setting from conduit. Conduwuit
change it to enabled-by-default in [1]. This can make things confusing
for users migrating from conduwuit to grapevine, especially since we
currently do not log a warning when federation is disabled.

[1]: 24605e151d
This commit is contained in:
Benjamin Lee 2024-05-30 09:30:13 -07:00
parent 12e7f525aa
commit 72962c6402
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4

View file

@ -49,7 +49,7 @@ pub(crate) struct Config {
pub(crate) registration_token: Option<String>, pub(crate) registration_token: Option<String>,
#[serde(default = "true_fn")] #[serde(default = "true_fn")]
pub(crate) allow_encryption: bool, pub(crate) allow_encryption: bool,
#[serde(default = "false_fn")] #[serde(default = "true_fn")]
pub(crate) allow_federation: bool, pub(crate) allow_federation: bool,
#[serde(default = "true_fn")] #[serde(default = "true_fn")]
pub(crate) allow_room_creation: bool, pub(crate) allow_room_creation: bool,