956 Commits

Author SHA1 Message Date
Kévin Commaille
2d88df7fb7 common: Clarify that reactions are not all emojis
According to MSC2677
2022-03-15 09:17:21 +01:00
Kévin Commaille
f0c8703ee5 common: Add replacement to Relations 2022-03-15 09:17:21 +01:00
Kévin Commaille
260dfeb100 common: Remove unstable Relations constructor
Not manageable with more unstable features
2022-03-15 09:17:21 +01:00
Kévin Commaille
77ce26701c common: Fix typo in Replacement docs 2022-03-15 09:17:21 +01:00
Jonas Platte
d78fb70953
macros: Ensure event content types are structs 2022-03-14 16:32:17 +01:00
Jonas Platte
0b10151bcb
macros: Only iterate fields once in EventContent derive 2022-03-14 16:32:17 +01:00
Jonas Platte
46bab5cca6
macros: Fix unnecessary named fields requirement in EventContent derive 2022-03-14 16:32:17 +01:00
Jonas Platte
44ed91a5af
macros: Fix inconsistent naming 2022-03-14 16:32:17 +01:00
Jonas Platte
22541ba92f
common: Feature-gate part of doctest 2022-03-14 16:32:16 +01:00
Timo Kösters
83e46b6aea
state-res: Fix restricted joins 2022-03-14 15:02:21 +01:00
Kévin Commaille
117880524f
client-api: Fix sso_login added version 2022-03-14 13:51:30 +01:00
Jonathan de Jong
1ffccaba18
federation-api: Add versions endpoint (MSC3723) 2022-03-14 12:03:27 +01:00
Kévin Commaille
e336db767a
common: Add support for extensible image events 2022-03-14 10:43:15 +00:00
Jonathan de Jong
a54cf06b9e
identity-service-api: Add /versions endpoint (MSC2320) 2022-03-14 10:06:35 +01:00
Kévin Commaille
a0e05c0a31
client-api: Move get_capabilities into discovery 2022-03-13 09:56:16 +01:00
Kévin Commaille
fbe07e8636
client-api: Rename discover module to discovery
Align with federation-api
2022-03-13 09:45:02 +01:00
Timo Kösters
1ab97ddbe5
state-res: Fix knocking support 2022-03-11 12:38:39 +00:00
Kévin Commaille
bdcf07be87
common: Merge ruma-serde into ruma-common 2022-03-10 12:11:00 +01:00
Kévin Commaille
bdd54d1dd3
macros: Use import_ruma_common instead of import_ruma_api 2022-03-10 11:00:27 +01:00
Jonas Platte
1bce0f0c96
common: Instrument push condition matching 2022-03-09 19:21:28 +01:00
Kévin Commaille
088d1872b7
common: Merge ruma-identifiers into ruma-common 2022-03-09 17:46:51 +00:00
Jonas Platte
e1c9af6d74
client-api: Remove outdated comment 2022-03-08 10:30:06 +01:00
homersimpsons
2ec50bd03c
doc: migrate links from matrix-doc to matrix-spec(-proposals) 2022-03-08 10:24:26 +01:00
gnieto
fca0f6a22b
Minor fix on join member auth rules
Previous code was not checking/enforcing rule 4.3.1
(https://spec.matrix.org/v1.2/rooms/v9/), which states that a room
member event (with a join membership) must be accepted only if it contains
a previous event which `state_key` is the room creator.

On top of that, it simplifies the public interface for `auth_rules`,
removing the need of (externally) compute `prev_event`, which, as a side
effect, should reduce the amount of times the previous event needs to be
fetched: It will only load it if the authorized event is a `m.room_member`
with a `Join` state.

Finally, I've splitted the join conditions so it's (hopefully) more
readable and apply auth rules in the same order as they
appear in the spec.
2022-03-08 08:27:47 +01:00
Johannes Becker
e94e0e885d
common: Enhance MessageType docs 2022-03-07 13:35:55 +00:00
Jonas Platte
ed36ae5ac7
client-api: Fix response field name in space::get_hierarchy 2022-03-05 14:12:17 +01:00
Jonas Platte
493b9a08c7
macros: Move utility things into util module 2022-03-04 17:43:39 +01:00
Jonas Platte
1192bd1099
common: Create crate-level macro re-exports module 2022-03-04 17:00:01 +01:00
Jonas Platte
43c47ef676
state-res: Fix wrong import location 2022-03-04 17:00:00 +01:00
Jonas Platte
f4b539bec5
macros: Fix a confusing variable name 2022-03-04 15:08:16 +01:00
Kévin Commaille
4cefb9ef62 appservice-api: Fix helper_tests 2022-03-04 13:34:57 +01:00
Kévin Commaille
9e736bec84 ruma: Fix hello_isahc example 2022-03-04 13:34:57 +01:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common 2022-03-04 11:45:07 +00:00
Kévin Commaille
588fe9c006 events: Remove unnecessary unwraps in message tests 2022-03-03 14:04:20 +01:00
Kévin Commaille
49fe823d74 events: Remove TextMessage trait 2022-03-03 14:04:20 +01:00
Kévin Commaille
f32dcb9254
common: Merge ruma-api into ruma-common 2022-03-03 14:01:51 +01:00
Kévin Commaille
c37a514a89 events: Add support for extensible file events
As defined in MSC3551
2022-03-03 13:55:04 +01:00
Jonas Platte
c1e1665808
macros: Remove an unnecessary clone 2022-03-03 11:14:54 +01:00
Kévin Commaille
99cd70b430 events: Add support for extensible notice and emote events
As defined in MSC1767
2022-03-02 18:09:43 +01:00
Kévin Commaille
f78d3480a5 events: Add support for extensible text event
As defined in MSC1767
2022-03-02 18:09:43 +01:00
Kévin Commaille
0d49715f29
macros: Merge ruma-api-macros into ruma-macros 2022-03-02 15:19:16 +01:00
Kévin Commaille
2a3c78de18
macros: Merge ruma-serde-macros into ruma-macros 2022-03-01 18:02:57 +01:00
Kévin Commaille
60eb51ee0e macros: Merge ruma-identifiers-macros into ruma-macros 2022-03-01 17:24:19 +01:00
Kévin Commaille
c52e51c016
federation-api: Implement space summary API
According to MSC2946
2022-03-01 15:57:45 +01:00
Kévin Commaille
84e1c919c9
client-api: Implement space summary API
According to MSC2946
2022-03-01 15:57:43 +01:00
Kévin Commaille
ede7601aa9
events: Fix typos 2022-02-28 13:42:12 +01:00
Kévin Commaille
f2dca60fc7
macros: Rename ruma-events-macros to ruma-macros 2022-02-27 13:54:17 +01:00
Kévin Commaille
60b2212a57
client-api: Use Raw for set_*_account_data::Request::data 2022-02-25 22:46:30 +01:00
Kévin Commaille
bff34569cf identity-api: Add room_type to store_invitation::Request
According to MSC3288
2022-02-23 21:39:54 +01:00
Kévin Commaille
557a595877 events: Move room::create::RoomType to ruma-common 2022-02-23 21:39:54 +01:00