146 Commits

Author SHA1 Message Date
Kévin Commaille
e409d22ea0 Fix fallback text field name for extensible events in RoomMessageEventContentWithoutRelation::make_reply_to_raw() 2023-11-14 19:53:37 +01:00
Jonas Platte
e8bc589e52
Transition to type privacy lints 2023-11-09 09:50:04 +01:00
Jonas Platte
37c93d57e5
events: Change rich_reply.md to not require specific symbols to be in scope
… for intra-doc links.
2023-11-08 17:49:00 +01:00
Kévin Commaille
9c385a707f events: Improve compatibility of unstable voice messages
Use the same parameters as Element clients.
2023-10-11 15:42:32 +02:00
Alfonso Grillo
530d0afdc8
events: Add unstable voice message types initializers 2023-10-11 08:28:00 +00:00
Jonas Platte
e7ed90ad0f
events: Add RoomMessageEventContentWithoutRelation::add_mentions 2023-10-10 09:54:11 +02:00
Jonas Platte
440a563355
event: Add reply-making methods to RoomMessageEventWithoutRelation 2023-10-10 09:54:11 +02:00
Jonas Platte
533beb600f
events: Add convenience c'tors to RoomMessageEventContentWithoutRelation 2023-10-09 16:02:07 +02:00
Jonas Platte
0f023c5222
events: Move RoomMessageEventContentWithoutRelation into separate module 2023-10-09 16:00:28 +02:00
Jonas Platte
25d0b3ce59
events: Move message relation types into separate module 2023-10-09 15:59:49 +02:00
Jonas Platte
cf59d6ecb1
events: Re-group imports, re-exports in room::message 2023-10-09 15:55:08 +02:00
Jonas Platte
9b1f7363a0
events: Move replacement body text generation to MessageType
… from RoomMessageEventContent.
2023-10-09 15:26:27 +02:00
Jonas Platte
9b94117bf2
events: Move reply fallback generation to MessageType
… from RoomMessageEventContent.
2023-10-09 15:12:52 +02:00
Jonas Platte
5c570b1604
events: Change AddMentions::Yes to only mention the original sender 2023-10-09 14:44:35 +02:00
Jonas Platte
935ac70e28
events: Add missing track_caller attribute
Without this one, the `#[track_caller]` in `make_reply_to` and
`make_reply_to_raw` were pointless.
2023-10-09 13:57:31 +02:00
Kévin Commaille
5040aa2a93 events: Allow to build reply to raw events 2023-09-20 12:18:21 +02:00
Jonas Platte
bc48eb2162
events: Ensure that all public items are documented 2023-09-20 11:52:25 +02:00
Jonas Platte
5907544166
events: Add ReplacementMetadata
… to allow creating replacements without having the full original event.
2023-09-20 11:37:39 +02:00
Kévin Commaille
a53bd09b8a events: Make name required in RoomNameEventContent
The wording of the spec was confusing but it is indeed required
2023-09-18 15:05:26 +02:00
Kévin Commaille
18195e0a6e events: Allow replacement unstable poll start events to have no fallback 2023-09-15 13:19:22 +02:00
Kévin Commaille
6da56dc541 events: Add compat feature to send empty string to unset room name 2023-09-13 17:28:57 +02:00
Jonas Platte
dad3c70d9d
events: Fix missing re-export of new unstable types 2023-09-12 15:53:07 +02:00
Jonas Platte
a8180722f4
events: Add support for voice messages as implemented by Element Web 2023-09-12 10:20:38 +02:00
Kévin Commaille
b4853aa8fa events: Add method on RoomMessageEventContent to apply a replacement 2023-09-04 14:11:33 +02:00
Kévin Commaille
ba973c98f1 html: Expose sanitize API on Html 2023-08-29 11:19:48 +02:00
Jonas Platte
399adc911f Use as_variant crate for shorter code 2023-08-28 19:31:39 +02:00
Jonas Platte
31331f3165
Bring back ruma-events
Co-authored-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-08-28 10:23:54 +02:00
Kévin Commaille
c3f9a3cb70
common: Merge ruma-events into ruma-common 2022-03-04 11:45:07 +00: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
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
557a595877 events: Move room::create::RoomType to ruma-common 2022-02-23 21:39:54 +01:00
Kévin Commaille
794f1185ed
events: Update the description of JoinRule::Knock 2022-02-23 12:35:24 +00:00
Kévin Commaille
771f437d9e
events: Rename MessageEvent to MessageLikeEvent 2022-02-22 20:06:36 +01:00
Jonathan de Jong
936bb64e84
Update links to spec.matrix.org/v1.2 2022-02-18 19:45:04 +01:00
Jonas Platte
215cb35806
Clean up import grouping / ordering 2022-02-18 11:20:39 +01:00
Kévin Commaille
cdf383cc45 events: Move MSCs to per-msc features 2022-02-11 10:18:07 +01:00
Kévin Commaille
355343235f events: Move space deserialization test out of unstable-pre-spec 2022-02-11 10:18:07 +01:00
Kévin Commaille
bb80b33bd9 events: Move VerificationRequest's deserialization out of unstable-pre-spec 2022-02-11 10:18:07 +01:00
Jonathan de Jong
851646dd97
events: Fix rustdoc warning 2022-02-10 20:24:29 +01:00
Jonas Platte
71a7dbdc43
events: Remove unstable-spec feature
Everything that was gated behind it was stabilized with Matrix v1.2.
2022-02-02 23:25:49 +01:00
Jonas Platte
f9c14eb128
events: Fix missing feature-gate on import 2022-02-02 21:10:48 +01:00
Jonas Platte
39041286b9
Move from_raw_json_value to ruma-serde
… and remove unnecessary copies of it.
2022-02-02 20:58:47 +01:00
Jonas Platte
f7a10a7e47
events: Fix missing feature flags 2022-02-02 11:47:56 +01:00
Jonas Platte
f46c7a643f
events: Move space events from unstable-pre-spec to unstable-spec 2022-02-01 22:02:23 +01:00
Jonas Platte
760cbb94fc
events: Move join_authorized_via_users_server to unstable-spec 2022-02-01 21:35:32 +01:00
Jonas Platte
de0b3e1cf3
events: Move RoomMemberEventContent reason field out of unstable-pre-spec
… stable since v1.1.
2022-02-01 21:28:19 +01:00
Jonas Platte
1a4e464422
Move restricted join rules and room versions 8, 9 from unstable-pre-spec to unstable-spec 2022-02-01 20:47:37 +01:00
Jonathan de Jong
8348b97091
Improve Synapse compatibility w.r.t. power levels 2022-02-01 15:26:30 +01:00
Jonas Platte
89ae41166d
events: Move new verification events out of unstable-pre-spec
… since they were stabilized with v1.1.
2022-01-31 20:43:38 +01:00