Yorusaka Miyabi
ec42dd491a
events: Add unstable support for MSC2545 for image packs
2025-01-02 18:44:08 -05:00
Kévin Commaille
0a37df11cd
events: Add unstable support for is_animated image flag
...
According to MSC4230.
2025-01-02 18:44:00 -05:00
Kévin Commaille
3321286242
events: Do not generate reply fallbacks anymore
...
According to MSC2781.
The helper methods for the relevant relations have been simplified to
only take the necessary data.
2025-01-02 18:42:26 -05:00
Kévin Commaille
fb273553b5
identifiers: Allow to set ruma_identifiers_storage cfg setting with env variable
2024-12-15 02:55:58 -05:00
Damir Jelić
d82e2a02d5
events: Add support for MSC4171
2024-11-29 17:36:28 -05:00
Mathieu Velten
2ab432fba1
ruma-events: Accept any string as a key for m.direct
account data
2024-11-15 12:23:29 -05:00
Kévin Commaille
f87f388280
events: Use Signatures in more places
2024-11-08 13:13:37 -05:00
Kévin Commaille
f753a2f326
events: Improve markdown parsing code
...
Loop through the events only once to detect both whether there is
markdown and whether the markdown is inline.
Fix more cases of false negatives in markdown detection, like
whitespaces that are removed or the string beginning by a backslash
escape.
2024-11-07 18:59:47 -05:00
Kévin Commaille
278a45aec8
events: Remove p tag around inline markdown
...
As recommended by the spec.
2024-11-07 18:52:56 -05:00
Neek
1c4eeb4c41
events: Add relates_to field on StickerEventContent
2024-10-19 14:59:29 -04:00
Kévin Commaille
60b92e8e1d
events: Stabilize support for marked unread room account data
...
The unstable `com.famedly.marked_unread` room account data is still
available behind the `unstable-msc2867` cargo feature to be able to
migrate data from the unstable to the stable prefix.
2024-10-19 14:59:15 -04:00
Kévin Commaille
9abafb284a
events: Fix indentation in changelog
2024-10-19 14:58:54 -04:00
Doug
4a5d7d0e7a
events: Add filename helper methods for audio, file, image and video messages.
2024-10-19 14:58:49 -04:00
Doug
e0db68241d
events: Add helpers for media captions to audio, file, image and video messages
2024-10-19 14:58:46 -04:00
Timo
1ae98db9c4
changelog: Document device_id
type change
2024-09-17 12:07:49 +02:00
Kévin Commaille
dac38e4e17
events: Improve markdown syntax detection
...
We also detect backslash escapes and entity references.
2024-09-06 09:59:47 +02: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
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
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
00a17dbe9d
events: Fix deserialization of AnyGlobalAccountDataEvent for variants with type fragment
2024-06-21 18:10:31 +02:00
torrybr
f60c79727a
events: Unstable support for MSC 3489 live location sharing
2024-06-10 23:45:42 +02:00
Marco Antonio Alvarez
6cd3af9b86
events: Add support for encrypted stickers
2024-05-23 15:49:15 +02:00
Kévin Commaille
4ec2d68fc0
Release ruma-events 0.28.1
2024-05-13 15:18:09 +02:00
Kévin Commaille
0f38daacef
events: Handle existing mentions in make_replacement
...
Allows to use add_mentions before calling it.
Deprecates set_mentions.
2024-05-13 15:07:26 +02:00
Kévin Commaille
42bec95cdc
events: Move all methods to construct a relation to RoomMessageEventContentWithoutRelation
2024-05-12 19:53:27 +02:00
Kévin Commaille
cee4a3f779
Release ruma-events 0.28.0
2024-05-09 12:39:10 +02:00
Kévin Commaille
a28d1428e0
events: Add unstable support for muting in VoIP calls
...
According to MSC3291
2024-04-27 16:11:10 +02:00
Kévin Commaille
2313217470
events: Add support for multi-stream VoIP
...
According to MSC3077 / Matrix 1.10
2024-04-07 15:46:24 +02:00
Kévin Commaille
cab3b99ba7
docs: Mark changelog entries for Matrix 1.10
2024-03-22 21:28:39 +01:00
Kévin Commaille
22e89bde2b
events: Make some fields of Candidate optional
...
For compatiblity with the WebRTC spec.
Notably the last Candidate should only contain the `candidate` field
with an empty string.
2024-03-08 15:12:02 +01:00
Kévin Commaille
6c7fbb5e88
events: Disallow invite->knock membership change
2024-02-28 10:34:52 +01:00
SpiritCroc
631911a1de
events: Add filename and formatted fields to media messages
...
For MSC2530 media captions
2024-02-27 11:40:56 +01:00
Matthias Ahouansou
1a1c61ee1e
events: change type of state_key field of HierarchySpaceChildEvent to OwnedRoomId
2024-02-24 20:30:44 +01:00
Matthias Ahouansou
c00085b520
events: Implement From<JoinRule> for SpaceRoomJoinRule
2024-02-14 14:27:21 +01:00
Stefan Ceriu
68c9bb0930
Add support for MSC2867 - Manually marking rooms as unread
2024-01-26 23:28:11 +00:00
Richard van der Hoff
9d81576af7
events: Correct properties of SecretStorageV1AesHmacSha2Properties
...
The `key` and `iv` properties of this type are, and have always been, optional according to the spec.
2024-01-18 13:54:39 +00:00
Kévin Commaille
a7e1d7fa49
events: Split method to get power level to redact between own and others events
2024-01-11 16:46:36 +01:00
Kévin Commaille
9d9827c165
events: Add convenience methods about actions to other users according to power levels
...
Some of these actions are limited by the power level of the other user.
2024-01-02 14:33:09 +01:00
Kévin Commaille
df1a63909a
events: Implement From<RoomPowerLevels> for PushConditionPowerLevelsCtx
2023-12-03 13:03:06 +01:00
Jonas Platte
ec54fd99de
Merge branch 'ruma-0.9.x'
2023-11-27 16:19:31 +01:00
Jonas Platte
23c2b9546d
Release ruma-events 0.27.11
2023-11-27 16:17:39 +01:00
Timo
ef9f790928
events: Add CallNotify event as described by MSC4075
...
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 16:17:23 +01:00
Timo
8fc12b0324
events: Add CallNotify event as described by MSC4075
...
https://github.com/matrix-org/matrix-spec-proposals/pull/4075
2023-11-27 15:49:36 +01:00
Jonas Platte
6639c727ae
Merge branch 'ruma-0.9.x'
2023-11-22 20:02:17 +01:00
Jonas Platte
877b1c63fe
Release ruma-events 0.27.10
2023-11-22 19:52:20 +01:00
Jonas Platte
1328e52387
events: Deprecate relations event_id
methods
2023-11-16 14:27:23 +01:00
Jonas Platte
740f357e97
events: Don't fail event content parsing on invalid relation
2023-11-16 14:12:55 +01:00
Jonas Platte
b006aa37fa
Release ruma-events 0.27.9
2023-11-15 10:40:41 +01:00
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