File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ version = "0.1.2"
344344[workspace .dependencies .ruma ]
345345git = " https://forgejo.ellis.link/continuwuation/ruwuma"
346346# branch = "conduwuit-changes"
347- rev = " a97b91adcc012ef04991d823b8b5a79c6686ae48 "
347+ rev = " 1415caf8a32af4d943580c5ea4e12be1974593c2 "
348348features = [
349349 " compat" ,
350350 " rand" ,
@@ -383,7 +383,8 @@ features = [
383383 " unstable-pdu" ,
384384 " unstable-msc4155" ,
385385 " unstable-msc4143" , # livekit well_known response
386- " unstable-msc4284"
386+ " unstable-msc4284" ,
387+ " unstable-msc4439" , # pgp_key in .well_known/matrix/support
387388]
388389
389390[workspace .dependencies .rust-rocksdb ]
Original file line number Diff line number Diff line change 1+ Add new config option for [ MSC4439] ( https://github.com/matrix-org/matrix-spec-proposals/pull/4439 )
2+ PGP key URIs. Contributed by LogN.
Original file line number Diff line number Diff line change 18691869#
18701870# support_mxid =
18711871
1872+ # PGP key URI for server support contacts, to be served as part of the
1873+ # MSC1929 server support endpoint. This uses the unstable prefix from
1874+ # [MSC4439].
1875+ #
1876+ # [MSC4439]: https://github.com/matrix-org/matrix-spec-proposals/pull/4439
1877+ #
1878+ # support_pgp_key =
1879+
18721880# **DEPRECATED**: Use `[global.matrix_rtc].foci` instead.
18731881#
18741882# A list of MatrixRTC foci URLs which will be served as part of the
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ pub(crate) async fn well_known_support(
7171
7272 let email_address = services. config . well_known . support_email . clone ( ) ;
7373 let matrix_id = services. config . well_known . support_mxid . clone ( ) ;
74+ let pgp_key = services. config . well_known . support_pgp_key . clone ( ) ;
7475
7576 // TODO: support defining multiple contacts in the config
7677 let mut contacts: Vec < Contact > = vec ! [ ] ;
@@ -88,6 +89,7 @@ pub(crate) async fn well_known_support(
8889 role : role_value. clone ( ) ,
8990 email_address : email_address. clone ( ) ,
9091 matrix_id : matrix_id. clone ( ) ,
92+ pgp_key : pgp_key. clone ( ) ,
9193 } ) ;
9294 }
9395
@@ -104,6 +106,7 @@ pub(crate) async fn well_known_support(
104106 role : role_value. clone ( ) ,
105107 email_address : None ,
106108 matrix_id : Some ( user_id. to_owned ( ) ) ,
109+ pgp_key : None ,
107110 } ) ;
108111 }
109112 }
Original file line number Diff line number Diff line change @@ -2191,6 +2191,13 @@ pub struct WellKnownConfig {
21912191 /// listed.
21922192 pub support_mxid : Option < OwnedUserId > ,
21932193
2194+ /// PGP key URI for server support contacts, to be served as part of the
2195+ /// MSC1929 server support endpoint. This uses the unstable prefix from
2196+ /// [MSC4439].
2197+ ///
2198+ /// [MSC4439]: https://github.com/matrix-org/matrix-spec-proposals/pull/4439
2199+ pub support_pgp_key : Option < String > ,
2200+
21942201 /// **DEPRECATED**: Use `[global.matrix_rtc].foci` instead.
21952202 ///
21962203 /// A list of MatrixRTC foci URLs which will be served as part of the
You can’t perform that action at this time.
0 commit comments