5527 Commits

Author SHA1 Message Date
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
strawberry
c76e2873c1 make ruma-identifiers-validation a ruma feature
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-07-23 22:09:52 -04:00
strawberry
c51ccb2c68 fix incorrect MSC3266 room summary API endpoint
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-07-03 15:42:44 -04:00
strawberry
9a5bfad849 Merge remote-tracking branch 'upstream/main' into conduwuit-changes 2024-06-30 11:54:39 -04:00
strawberry
f1f96dc2b2 revert this cargo.toml formatting
Signed-off-by: strawberry <strawberry@puppygock.gay>
2024-06-30 11:54:20 -04:00
Matthias Ahouansou
c37843e9be events: make allow field for restricted rooms optional
In the spec, it doesn't state that it is a required field, even for restricted rooms
2024-06-27 18:26:34 +00:00
Kévin Commaille
f17de39ed4 events: More relation serde fixes
It seems that we cant count on serde_json::to_value to detect
duplicates,
because it swallows them instead of returning an error.
The only solution then is to serialize to string and try to deserialize
again.
2024-06-25 14:10:11 +02:00
Timo
862be071d2
client-api: Add future endpoints 2024-06-25 12:45:15 +02:00
Benjamin Bouvier
e5a370f7e5 events: don't serialize the rel_type twice for Thread relationships 2024-06-25 11:00:38 +02:00
June 🍓🦴
f502c88878
Merge pull request #5 from jevolk/conduwuit-changes
GATs are stable
2024-06-25 04:38:15 -04:00
Jason Volk
cdac2a88f8 GATs are stable
Signed-off-by: Jason Volk <jason@zemos.net>
2024-06-25 05:44:50 +00:00
Benjamin Bouvier
fec2152d87
events: allow deserializing an event content with a type (#1850)
This allows deserializing all the `*EventContent` types into a parent `Any{...}EventContent`, assuming we know the type of the underlying event.

Required for serializing/deserializing the content of events we'd like to send, across application restarts, as in https://github.com/matrix-org/matrix-rust-sdk/issues/3361 for the Rust SDK.

---

* events: add deserialize_with_type to all the *EventContent types

* events: add smoke test for deserializing an event content with a type

* events: add a test for deserializing a secret storage key event content

* events: add fix for correctly matching events with a type fragment

* Address review comments.
2024-06-24 10:55:12 +02:00
Kévin Commaille
829bf5caec server-util: Use http-auth crate to parse XMatrix 2024-06-22 16:25:05 +02:00
Kévin Commaille
a17c0516d6 identifiers: Deprecate constructing Matrix URI for event with room alias
According to MSC4132 / Matrix 1.11
2024-06-22 11:10:44 +02:00
Kévin Commaille
bc39c04af9 client-api: Add support for terms of service at registration
According to MSC1692 / Matrix 1.11
2024-06-22 11:05:57 +02:00
Kévin Commaille
002fe2fb3d html: Add support for mathematical messages
According to MSC2191 / Matrix 1.11
2024-06-22 11:00:18 +02:00
Kévin Commaille
ba76e0ee3a client-api: Stabilize support for animated thumbnails
According to Matrix 1.11
2024-06-22 10:58:13 +02:00
Kévin Commaille
3eb0248cf8 events: Stabilize support for muting in VoIP calls
According to Matrix 1.11
2024-06-22 10:56:58 +02:00
Kévin Commaille
968c52b117 api: Rename request macro attribute query_map to query_all
Remove its IntoIterator bound to allow to represent
the query fields as a single struct or enum.
2024-06-21 19:15:59 +02:00
Kévin Commaille
05c12bf3ba api: Clarify that access tokens using query parameter are deprecated
According to MSC4126 / Matrix 1.11
2024-06-21 18:21:45 +02:00
Kévin Commaille
ffc1cb1c4d ci: Print version of latest spec page downloaded 2024-06-21 18:12:58 +02:00
Kévin Commaille
00a17dbe9d events: Fix deserialization of AnyGlobalAccountDataEvent for variants with type fragment 2024-06-21 18:10:31 +02:00
Kévin Commaille
ceba4586d6 identifiers: Remove link to previous version of spec in changelog
It doesn't pass the spec links checker anymore
and it doesn't seem worth it to try to solve this.
2024-06-21 18:10:14 +02:00
Kévin Commaille
b8e4d5b6a2 misc: Update spec links to latest version 2024-06-21 18:10:14 +02:00
Kévin Commaille
015a0c1c96 ci: Make spec links check output format easier to parse 2024-06-21 18:10:14 +02:00
Kévin Commaille
32d0e03575 ci: Change how we detect duplicate IDs for spec links
Starting with Matrix 1.11, the IDs are uniquified when generating
the HTML rather than in the browser with JavaScript,
so we need to check IDs that are already de-duplicated.
2024-06-21 18:10:14 +02:00
Kévin Commaille
46781d70ef client-api: Deprecate non-authenticated media endpoints
According to MSC3916 / Matrix 1.11
2024-06-21 17:55:34 +02:00
Kévin Commaille
44b474a6f1 client-api: Stabilize authenticated media endpoints
According to Matrix 1.11
2024-06-21 15:48:56 +02:00
Kévin Commaille
644883eaf5 ci: Allow spec links to Matrix 1.11 2024-06-21 15:19:34 +02:00
Kévin Commaille
2dcc83278a api: Add MatrixVersion::V1_11 2024-06-21 15:19:34 +02:00
Kévin Commaille
1910a7f092 api: Fix response macro docs 2024-06-19 14:35:48 +02:00
Mikoto
629b06e1e4
thirdparty: Implement Borrow/Hash/Eq for ThirdPartyIdentifier 2024-06-18 23:35:19 +02:00
Mikoto
afb5ae0102
client-api: Make id_server and id_access_token in ThirdpartyIdCredentials optional fields 2024-06-18 23:19:22 +02:00
Kévin Commaille
b8f0cb8fac client-api: Fix changelog 2024-06-18 19:15:05 +02:00
Kévin Commaille
b7bc7d4873 client-api: Make authentication optional for change_password and
deactivate
2024-06-18 18:35:17 +02:00
Kévin Commaille
64b3838113 thirdparty: Fix unstable-unspecified feature being non-additive 2024-06-18 13:41:47 +02:00
Kévin Commaille
6347f547c1 events: Upgrade pulldown-cmark crate 2024-06-18 12:21:42 +02:00
Kévin Commaille
b367e42bd0 events: Remove unwanted pulldown-cmark cargo feature 2024-06-18 12:21:42 +02:00
Xiretza
5f0fc0aec2 signatures: enforce base64 for signature field in X-Matrix headers 2024-06-17 21:57:13 +02:00
Xiretza
230a90ef39 signatures: fix encoding of X-Matrix header
The values need to be escaped properly, just quoting them is not enough.
2024-06-17 21:57:13 +02:00