320 Commits

Author SHA1 Message Date
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
Michael Hollister
7b898bf376
events: Added shared_history flag to room key events
Signed-off-by: Michael Hollister <michael@futo.org>
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
2023-10-06 09:37:29 +02:00
Jonas Platte
1227db0f08
Release ruma-events 0.27.0 2023-10-05 17:09:02 +02:00
Kévin Commaille
cf4a5d263f events: Add support for custom SecretStorageEncryptionAlgorithm 2023-10-05 10:48:29 +02:00
Kévin Commaille
9696e9083f events: Change SecretStorageEncryptionAlgorithm::V1AesHmacSha2 to a tuple variant
This will facilitate serde when adding a custom variant
2023-10-05 10:48:29 +02:00
Kévin Commaille
22a668e461 events: Rename SecretEncryptionAlgorithm::SecretStorageV1AesHmacSha2 to SecretStorageEncryptionAlgorithm::V1AesHmacSha2
It follows better the namespacing of the algorithm
2023-10-05 10:48:29 +02:00
Damir Jelić
7474f3e9ef Add a From SecretName implementation for GlobalAccountDataEventType
The secret names are reused as event types for the account data events
which get uploaded as part of the secret storage key/value store.
2023-09-28 14:38:17 +02:00
Damir Jelić
51d104c56c Add a constructor for SecretStorageDefaultKeyEventContent 2023-09-27 11:09:04 +02:00
Damir Jelić
50d28aefbd Rename the key field of the SecretStorageDefaultKeyEventContent to key_id
This makes it clearer that the field does not contain a secret key of
any sort.
2023-09-27 11:09:04 +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
ae537afb0d events: Clarify default value of suggested in SpaceChildEventContent 2023-09-15 13:40:07 +02:00
Kévin Commaille
2ad291ceb0 events: Use the default value of canonical in SpaceParentEventContent's constructor 2023-09-15 13:40:07 +02:00
Kévin Commaille
4dbda813c9 events: Make via required in space child and parent events
According to a spec clarification
2023-09-15 13:40:07 +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
e11d30934b events: Move changelog entries from ruma-common to ruma-events 2023-09-15 12:54:48 +02:00
Kévin Commaille
5c6277f298 events: Restore changelog from before crate was merged into ruma-common 2023-09-15 12:54:48 +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
f266ea90e7
events: Fix missing feature dependency 2023-09-12 15:53:14 +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
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
c37a514a89 events: Add support for extensible file events
As defined in MSC3551
2022-03-03 13:55:04 +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
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
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
stoically
1db909fbc7
events: Add simple custom state event example 2022-02-20 12:34:52 +01:00
Jonas Platte
b725865cba
Release ruma-events 0.26.0 2022-02-19 14:53:14 +01:00
Jonas Platte
06344cdc73
Release ruma-common 0.8.0 2022-02-19 14:47:08 +01:00
Jonas Platte
2ed51f1d54
Release ruma-identifiers 0.22.0 2022-02-19 14:28:28 +01:00
Jonas Platte
90fd1d8f0a
Release ruma-events 0.25.0 2022-02-19 01:38:25 +01:00
Jonas Platte
b29755f0c5
Release ruma-common 0.7.0 2022-02-19 01:33:25 +01:00
Jonas Platte
fec52a0218
Release ruma-identifiers 0.21.0 2022-02-19 01:07:23 +01:00
Jonas Platte
38881dd6af
Release ruma-serde 0.6.0 2022-02-19 01:01:17 +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
Jonas Platte
7a70d96235
Remove PrivOwnedStr() from Debug formatting 2022-02-15 17:46:27 +01:00