Jonas Platte
d15fc3f5ec
events: Avoid unnecessary copying in reply generation
2022-11-03 13:45:21 +01:00
Jonas Platte
ae26730e29
events: Move fragment stringification out of HtmlSanitizer::clean
2022-11-03 13:45:16 +01:00
Xiretza
69c807bdc1
events: Escape plain bodies in replies
...
Replies generate an HTML body even if the reply itself only consists of
plain text. In order to convert the plain text to HTML, it has to be
escaped, which did not happen previously.
2022-11-03 13:16:01 +01:00
Jonas Platte
c7e84c5249
Fix clippy lints
...
Automated using `cargo clippy --fix`.
2022-10-26 13:38:29 +02:00
gnieto
dcff5a0737
events: Make name on SecretStorageKeyEventContent optional
...
The spec has the `name` field marked as optional.
See: https://spec.matrix.org/v1.4/client-server-api/#key-storage
2022-10-22 08:29:13 +00:00
Kévin Commaille
045861441a
doc: Update Matrix spec links to v1.4
2022-10-21 10:41:20 +02:00
Kévin Commaille
a3675e61bf
events: Add method to construct a replacement
2022-10-21 10:40:33 +02:00
Kévin Commaille
21bda6678d
events: Enable more markdown syntax
...
Enable markdown extensions that produces spec-compliant HTML.
2022-10-19 21:44:33 +02:00
Kévin Commaille
a710229d9d
events: Fix markdown content detection
...
Encoded HTML entities would be detected as a change.
Use the parsed events instead to check if markdown syntax was detected.
2022-10-19 21:44:33 +02:00
Kévin Commaille
7c0f7ba5f1
events: Make Replacement generic over the parent type
...
Because the new content must be of the same type.
2022-10-17 20:27:49 +02:00
Kévin Commaille
7c802c89ca
events: Remove conversions between extensible types and room messages
...
They are more difficult to implement and use with
generic replacements, for little gain.
2022-10-17 20:27:49 +02:00
Kévin Commaille
ec853e968a
events: Generate structs without relation for events that can be replaced
2022-10-17 20:27:49 +02:00
Kévin Commaille
b538234bce
chore: Fix new docs warnings
2022-10-12 10:31:23 +02:00
Kévin Commaille
d3bd86a23e
events: Add support for read receipts for threads
...
According to MSC3771
2022-10-10 20:49:04 +02:00
Kévin Commaille
4e2dac30be
events: Stabilize support for event replacements
2022-10-10 18:23:03 +02:00
Kévin Commaille
994136b9b8
events: Add thread-aware methods to RoomMessageEventContent
2022-10-10 17:55:08 +02:00
Kévin Commaille
003f0abebf
events: Stabilize current support for threads
2022-10-10 17:55:08 +02:00
Kévin Commaille
2bdbf49535
chore: Fix new clippy warnings
2022-10-10 17:20:58 +02:00
Kévin Commaille
c7caf65f65
events: Remove ToDevice kind on RoomEncryptedEventContent
...
There is ToDeviceRoomEncryptedEventContent.
2022-10-01 12:12:26 +02:00
Kévin Commaille
c141b7deb5
events: Stabilize support for private read receipts
2022-10-01 11:21:18 +02:00
Jonas Platte
ac707e30f0
events: Move ignored_users serde code into ignored_user_list module
...
… and optimize it.
2022-09-24 11:34:55 +02:00
Jonas Platte
028eb8a457
events: Remove deprecated API
2022-09-22 11:50:22 +02:00
Jonas Platte
4fb051ba0f
Use Default derive for enums
2022-09-20 13:49:16 +02:00
Jonas Platte
66ff4dbaad
Raise MSRV to 1.62
2022-09-20 13:49:16 +02:00
Jonas Platte
b18313e579
events: Fix wrong cfg
2022-09-16 12:13:15 +02:00
Jonas Platte
fa61cc1248
events: Add relations accessors to event enums
2022-09-16 11:34:54 +02:00
Jonas Platte
df971d2c5c
events: Generate accessor methods in a more readable manner
2022-09-16 11:15:49 +02:00
Jonas Platte
b7b7d043f3
events: Add RoomMessageEventContent::make_reply_to
...
… and deprecate reply constructors.
2022-09-14 10:02:25 +02:00
Jonas Platte
e468a45426
events: Add RoomMemberUnsigned with invite_room_state field
2022-09-12 18:33:46 +02:00
Jonas Platte
aa8e48d1c3
events: Allow customizing the unsigned type of state events
2022-09-12 13:10:10 +02:00
Jonas Platte
35d8bdd5a1
events: Move StateUnsigned::_from_parts into a trait
2022-09-12 12:03:29 +02:00
Jonas Platte
9b5b5e7797
events: Remove unused function
2022-09-12 11:51:02 +02:00
Jonas Platte
674137c41d
events: Use CanBeEmpty trait for skipping unsigned serialization
2022-09-12 11:44:05 +02:00
Jonas Platte
7957dd6adf
events: Replace generic "alias" trait implementations by individual ones
...
… so that rustdoc lists types implementing them properly.
2022-09-05 11:16:30 +02:00
Jonas Platte
2579544883
events: Expand trait_aliases! macro
2022-09-05 10:35:09 +02:00
Kévin Commaille
6393433882
events: Fix glob definition in PolicyRuleEventContent
2022-09-04 14:43:29 +02:00
Jonas Platte
1aff2d0764
events: Derive Default for DirectEventContent
2022-09-02 13:37:33 +02:00
Jonas Platte
235e4509d3
events: Add impl From<AnyTimelineEvent> for AnySyncTimelineEvent
2022-09-01 18:11:00 +02:00
Jonas Platte
5ccee2d1b0
Implement Default for IgnoredUserListEventContent
2022-08-25 19:08:24 +02:00
Jonas Platte
914e5c21e9
events: Rename Any[Sync]RoomEvent to Any[Sync]TimelineEvent
2022-08-24 17:43:42 +02:00
Kévin Commaille
6f3d9fd327
events: Support m.html shortcut for MessageContent
2022-07-27 14:31:18 +02:00
Kévin Commaille
ed8990c3fd
events: Allow to create custom MessageEventContents
2022-07-27 14:31:18 +02:00
Kévin Commaille
635480796d
common: Add support for private read receipts
...
According to MSC2285
2022-07-18 11:18:55 +02:00
Kévin Commaille
fcdb2286c3
events: Remove unnecessary refs
2022-07-08 13:34:19 +02:00
Kévin Commaille
06cd3a3a6c
events: Allow clippy::needless_borrow to avoid false positives
2022-07-08 13:34:19 +02:00
Kévin Commaille
efc95da6fa
events: Remove needless borrow
2022-07-08 13:34:19 +02:00
Kévin Commaille
a4e6081b41
events: Improve extensible events conversion helpers docs
2022-07-08 13:34:19 +02:00
Kévin Commaille
be2310294a
events: Make extensible events conversion helpers private
2022-07-08 13:34:19 +02:00
Kévin Commaille
bda17c3662
events: Avoid unnecessary allocations during conversion
2022-07-08 13:34:19 +02:00
Jonas Platte
2e8b3e7e79
Fix clippy lints
2022-06-29 10:15:39 +02:00