mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-25 01:47:32 +00:00
feat: Allow room moderators to view redacted event content (MSC2815)
This commit is contained in:
1 parent
2c605151eb
commit
98fe280de4
9 files changed
+133
-3
No files matched your search
@@ -34,6 +34,11 @@ pub(crate) async fn get_supported_versions_route(
|
||||
unstable_features.insert("org.matrix.msc4354".to_owned(), true);
|
||||
}
|
||||
|
||||
if services.config.allow_moderators_to_view_redacted_content {
|
||||
// moderators can view redacted content (https://github.com/matrix-org/matrix-spec-proposals/pull/2815)
|
||||
unstable_features.insert("fi.mau.msc2815".to_owned(), true);
|
||||
}
|
||||
|
||||
Ok(assign!(get_supported_versions::Response::new(versions()), {
|
||||
unstable_features
|
||||
}))
|
||||
|
||||
Reference in new issue
Block a user