mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-25 09:57:34 +00:00
fix: Don't unconditionally advertise MSC4174 as enabled in capabilities
This commit is contained in:
1 file changed
+4
-1
@@ -66,7 +66,10 @@ pub(crate) async fn get_capabilities_route(
|
||||
|
||||
capabilities.set(
|
||||
"org.matrix.msc4174.webpush",
|
||||
json!({ "enabled": true, "vapid": services.pusher.webpush_vapid_public_key() }),
|
||||
json!({
|
||||
"enabled": services.config.experiments.msc4174.is_enabled(),
|
||||
"vapid": services.pusher.webpush_vapid_public_key()
|
||||
}),
|
||||
)?;
|
||||
|
||||
Ok(get_capabilities::v3::Response::new(capabilities))
|
||||
|
||||
Reference in new issue
Block a user