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
Jonas Platte
90fe9edc32
events: Remove questionable trait implementations
...
They weren't really useful for user code.
2022-01-31 20:43:38 +01:00
Timo Kösters
08d60b3d37
events: Add is_allowed method to RoomServerAclEventContent
2022-01-17 11:47:39 +00:00
Jonas Platte
4c859c5aeb
Introduce a Base64 type and use it where applicable
2022-01-13 16:22:21 +01:00
Jonas Platte
ee977b48f0
Make the inner type of _Custom enum variants unusable
...
The variant itself would be private if possible, this is the solution
closest to that.
2022-01-13 11:38:48 +01:00
homersimpsons
2d3816d72c
ruma-events: Add links to specs in modules docs
2021-12-28 14:36:34 +00:00
Devin Ragotzy
d15c877ad1
events: Update m.room.member for room versions 7 - 9
...
* Add join_authorized_via_users_server key for roomver 8+
* Add custom redaction impl for RoomMemberEventContent
2021-11-26 22:11:28 +00:00
Jonas Platte
6b76d7813e
identifiers: Shorten RoomVersionId variant names
2021-11-26 01:07:26 +01:00
Jonas Platte
87051c3cb6
identifiers: Make server_name! macro return a reference instead of an owned value
...
It is easy to turn it into an owned value through `.to_owned()`.
The reverse was not possible without tying the reference to the lifetime
of a temporary variable.
2021-11-26 00:53:07 +01:00
Jonas Platte
5852658da5
identifiers: Make KeyId a DST
2021-11-26 00:40:44 +01:00
Jonas Platte
3ce578f384
identifiers: Make UserId a DST
2021-11-26 00:40:40 +01:00
Jonas Platte
2d4dbfe42f
identifiers: Make RoomId a DST
2021-11-26 00:04:28 +01:00
Jonas Platte
b0db5e94e1
identifiers: Make RoomAliasId a DST
2021-11-26 00:04:28 +01:00