5730 Commits

Author SHA1 Message Date
strawberry
b003338b90 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-09-07 08:18:57 -04:00
Jonas Platte
037e37c5e7 ci: Exclude ruma-macros feature from stable-all 2024-09-07 07:57:30 +00:00
Jonas Platte
43abef7e1f ci: Update MSRV jobs
- Fix msrv-all enabling ruma-macros' nightly-only feature
- Test ruma-client in msrv-all, remove separate job
2024-09-07 07:57:30 +00:00
Jonas Platte
0e8388abab macros: Add __internal_macro_expand feature for better RA macro expansion 2024-09-07 07:57:30 +00:00
Jonas Platte
79025dfca4 macros: Improve internal assertions 2024-09-07 07:57:30 +00:00
Jonas Platte
de6b08a2b5 macros: Simplify internal derive macro input parsing 2024-09-07 07:57:30 +00:00
Kévin Commaille
88f56b0e00 html: Upgrade html5ever
Requires a complete change of the HTML tree, to have interior mutability
and be able to return borrowed data from a Handle.
It is now a Rc-based tree where each node has a weak reference to
its parent and strong references to its children.

This results ina few breaking changes to the public API.
2024-09-07 09:56:02 +02:00
strawberry
83a9bf7366 add DELETE impl of MSC4133 for MSC4175
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 23:25:12 -04:00
strawberry
0aa4cc4f9c add MSC4175 tz field to federation profile
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 23:19:16 -04:00
strawberry
bf93f9caa6 partial impl GET/PUT for MSC4133 and MSC4175
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 23:13:31 -04:00
strawberry
c8a2d06e24 Merge remote-tracking branch 'upstream/main' into conduwuit-changes
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-09-06 21:10:32 -04:00
Kévin Commaille
dac38e4e17 events: Improve markdown syntax detection
We also detect backslash escapes and entity references.
2024-09-06 09:59:47 +02:00
Kévin Commaille
0ea496b138 events: Upgrade pulldown-cmark 2024-09-06 09:59:47 +02:00
Kévin Commaille
d568d579ad html: Remove support for name attribute
According to MSC4159.
2024-09-06 09:21:24 +02:00
morguldir
d6890ef00c client-api: use a RoomTypeFilter for syncv3 (not_)room_types filters
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-09-05 19:48:18 +00:00
morguldir
f1fbfb12ea client-api: use RoomType for syncv3 filters instead of strings
(cherry picked from commit 5b2ce304010d7c4d1dc1b53af5d49eb1171422ed)
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-09-05 19:48:18 +00:00
June 🍓🦴
d7ddcd036f
Merge pull request #12 from morguldir/accountdata
accountdata: add an enum to allow returning both global and room accountdata
2024-08-30 07:41:44 -04:00
morguldir
8dd8aab29d
accountdata: add an enum to allow returning both global and room accountdata 2024-08-30 09:18:49 +02:00
Jason Volk
1de0f493e8 downgrade deprecation warns into debug_warns
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-28 15:41:56 +00:00
Jason Volk
89cee2d2d9 add missing Cow header in federation authenticated media
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-27 02:38:30 +00:00
Jason Volk
a0cc9a80dd add missing impl of PartialEq on media::Method
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-27 00:34:57 +00:00
strawberry
000d1e3732 add missing other piece to ThreepidMediumNotSupported
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-24 13:15:34 -04:00
June 🍓🦴
92291c0100
Merge pull request #11 from morguldir/conduwuit-changes
syncv3: use RoomType in sync filters
2024-08-24 00:20:51 -04:00
morguldir
5b2ce30401
syncv3: use RoomType in sync filters
Signed-off-by: morguldir <morguldir@protonmail.com>
2024-08-23 20:45:20 +02:00
Timo
642c981f99
MatrixRTC: fix call member parsing by using the correct focus_active format. (#1888)
`focus_select` -> `focus_selection`
2024-08-21 17:51:12 +02:00
strawberry
cd2de49c87 add M_THREEPID_MEDIUM_NOT_SUPPORTED, per MSC4178
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-17 02:19:44 -04:00
Jason Volk
25fbd64b96 fix str to mxc conversion; add convenience OwnedMxcUri conversion
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-16 06:35:50 +00:00
June 🍓🦴
01e910dccf
Merge pull request #10 from jevolk/conduwuit-changes
structured Mxc type
2024-08-15 23:30:25 -04:00
Jason Volk
2d2deb4ca7 structured Mxc type
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-16 00:37:51 +00:00
June 🍓🦴
d23a8412bd
Merge pull request #9 from jevolk/conduwuit-changes 2024-08-15 07:49:15 -04:00
Jason Volk
3f06ade0fd Revert "Revert "optimize for optional static response headers zero-copy zero-alloc""
This reverts commit 6bdc5ad326029e84fe05ed2591d9ba442bab8ff5.

Revert "Revert "Fix assumptions about header value types""

This reverts commit 03037f6c92ffb43388022d288e5a36f20a8559dd.
2024-08-15 05:20:21 +00:00
Jason Volk
6e5e96cba3 add missing ContentDisposition header; fix non-upstreamed ContentDisposition strong type
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-15 01:07:28 +00:00
Jason Volk
11cbd52af1 estimate and reserve capacity in outgoing headers map
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-14 02:11:25 -04:00
Jason Volk
e312768a66 add missing corp/cache-control headers to client authenticated media
Signed-off-by: Jason Volk <jason@zemos.net>
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-08-14 02:09:52 -04:00
strawberry
69b2bc4b8c Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-08-14 01:47:43 -04:00
strawberry
6bdc5ad326 Revert "optimize for optional static response headers zero-copy zero-alloc"
This reverts commit fd11fee88d937d69f557fa3d6ef09639c7b2e2f7.
2024-08-14 01:46:35 -04:00
strawberry
959048c0c4 Revert "add missing corp/cache-control headers to authenticated media"
This reverts commit 9d25b0d5c27dbcc62a70fbaacb80632bf6bc9ebc.
2024-08-14 01:46:10 -04:00
strawberry
3174097e35 Revert "estimate and reserve capacity in outgoing headers map"
This reverts commit a6e340e24d570b1d924fff52c68d1dea72946b68.
2024-08-14 01:44:42 -04:00
strawberry
03037f6c92 Revert "Fix assumptions about header value types"
This reverts commit 767b7c72f782b04f8e7c714a152a08699ff8c1ca.
2024-08-14 01:44:16 -04:00
June 🍓🦴
38d791b679
Merge pull request #8 from jevolk/conduwuit-changes
Daily Rumanation 🤔
2024-08-12 19:48:17 -04:00
Jason Volk
9d25b0d5c2 add missing corp/cache-control headers to authenticated media
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 23:03:07 +00:00
Jason Volk
fd11fee88d optimize for optional static response headers zero-copy zero-alloc
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 22:59:57 +00:00
Jason Volk
a6e340e24d estimate and reserve capacity in outgoing headers map
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 22:57:38 +00:00
Jason Volk
767b7c72f7 Fix assumptions about header value types
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-12 20:56:31 +00:00
June 🍓🦴
40bf9965ac
Merge pull request #7 from jevolk/conduwuit-changes
zero-alloc zero-copy identifier deserialization and validation
2024-08-11 16:44:50 -04:00
Jason Volk
de41ebd92f zero-alloc zero-copy identifier deserialization and validation
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-11 20:37:10 +00:00
June 🍓🦴
9508f16eb4
Merge pull request #6 from jevolk/conduwuit-changes
re-export js_int Error
2024-08-10 10:28:55 -04:00
Jason Volk
10f9f5a900 re-export js_int::Error
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-10 08:52:41 +00:00
Jason Volk
c12175cd16 apply rusfmt
Signed-off-by: Jason Volk <jason@zemos.net>
2024-08-10 08:40:49 +00:00
Andrew Ferrazzutti
82417e3940
events: Loosen type of call member event state keys
Allow MSC3401-style call membership state events to have state keys that
are arbitrary strings, and not just pure MXIDs.

This allows for state keys that are suffixed with the sender's device
ID, as well as ones prefixed by an underscore to bypass auth rules over
state keys that start with a `@` but do not strictly equal an MXID.
2024-08-10 09:41:46 +02:00