1074 Commits

Author SHA1 Message Date
Jonas Platte
634f93c985 macros: Improve error handling 2022-04-02 20:31:37 +02:00
Jonas Platte
a50b2d313a events: Remove unnecessary IdentFragment::span implementations 2022-04-02 20:31:37 +02:00
Jonas Platte
c787c8351e macros: Move EVENT_FIELDS out of util.rs
It was only used by the event_enum! macro anyways.
2022-04-02 20:31:37 +02:00
Jonas Platte
ca1159250e
events: Clean up module documentation
Remove a lot of no longer valid text.
2022-04-01 16:35:53 +02:00
Jonathan de Jong
b77fee8948
identifiers: Provide Owned types 2022-03-31 23:23:02 +02:00
Jonas Platte
a4aa7e0912
macros: Fix missing type qualification in Event derive macro 2022-03-31 18:42:27 +02:00
Jonas Platte
5ec3ad2290
events: Reintroduce *EventContent as trait aliases 2022-03-31 18:42:27 +02:00
Jonas Platte
9f56e6e497
events: Rename HierarchySpaceChildStateEvent => HierarchySpaceChildEvent 2022-03-31 18:42:27 +02:00
Jonas Platte
5ac6fcabc8
events: Remove unused EventKind 2022-03-31 18:42:27 +02:00
Jonas Platte
3c7edb1f9e
events: Rename internal module event_kinds => kinds 2022-03-31 18:42:27 +02:00
Jonas Platte
6279a2fa6f
events: Move EventContent trait and related items into new module 2022-03-31 18:42:27 +02:00
Kévin Commaille
36aa0cb3cf client-api: Implement MSC2654: Unread counts 2022-03-30 22:20:54 +02:00
Jonas Platte
24bd27a3a9 Remove origin field from PDUs
It has been removed from the spec, for details see
https://github.com/matrix-org/matrix-spec/pull/998
2022-03-30 08:44:40 +02:00
Kévin Commaille
0450f9d8f7
events: Add method to get user receipt in ReceiptEventContent 2022-03-30 00:05:47 +02:00
Kévin Commaille
77e44d6428
ruma: Re-export RoomName 2022-03-29 21:18:04 +02:00
Kévin Commaille
4ec803c29a events: Fix docs 2022-03-28 19:39:18 +02:00
Kévin Commaille
47bb788dc2 events: Rename ZoomLevel::value to get 2022-03-28 19:39:18 +02:00
Kévin Commaille
f3b2b7bce3 events: Rename Amplitude::value to get 2022-03-28 19:39:18 +02:00
Kévin Commaille
4128afaaeb fixup! events: Document transitional extensible events 2022-03-28 19:39:18 +02:00
Kévin Commaille
b701c9af0e events: Add a link to MSC3554 2022-03-28 19:39:18 +02:00
Kévin Commaille
85bd4a3e1f events: Document the unstable-extensible-events feature 2022-03-28 19:39:18 +02:00
Kévin Commaille
26c58c5f45 ruma: Add unstable-extensible-events feature
Convenience feature to activate all basic extensible events
2022-03-28 19:39:18 +02:00
Kévin Commaille
231775fe3e events: Document transitional extensible events 2022-03-28 19:39:18 +02:00
Kévin Commaille
83f16c83cb common: Remove unnecessary feature dependency 2022-03-28 19:39:18 +02:00
Kévin Commaille
aba6328d1c events: Add support for transitional extensible location messages
According to MSC3488
2022-03-28 17:37:04 +02:00
Kévin Commaille
c6d11c78a7 events: Add support for transitional extensible voice messages
According to MSC3245
2022-03-28 17:37:04 +02:00
Kévin Commaille
f3abeed5c1 events: Add support for transitional extensible audio messages
According to MSC3246
2022-03-28 17:37:04 +02:00
Kévin Commaille
33108d22bc events: Add support for transitional extensible video messages
According to MSC3553
2022-03-28 17:37:04 +02:00
Kévin Commaille
f2d35f217c events: Add support for transitional extensible sticker messages
According to MSC3552
2022-03-28 17:37:04 +02:00
Kévin Commaille
e94a8db7f4 events: Add support for transitional extensible image messages
According to MSC3552
2022-03-28 17:37:04 +02:00
Kévin Commaille
826c379e80 events: reorder types in image module 2022-03-28 17:37:04 +02:00
Kévin Commaille
8673d0d3f6 events: Add support for transitional extensible file messages
According to MSC3551
2022-03-28 17:37:04 +02:00
Kévin Commaille
0e11996545 events: reorder types in file module 2022-03-28 17:37:04 +02:00
Jonas Platte
deea762b8e events: Add custom Deserialize impls for MediaSource 2022-03-28 16:48:54 +02:00
Jonas Platte
8afc3a1100 events: Add a test for encrypted media sources being preferred 2022-03-28 16:48:54 +02:00
Jonas Platte
0a53fdb391
client-api: Create SpaceRoomJoinRule and use it 2022-03-28 14:35:19 +02:00
Jonas Platte
9de00ae348
client-api: Link to spaces spec section 2022-03-28 14:31:47 +02:00
Jonas Platte
21dead4245
events: Clean up leftover 'src' naming 2022-03-28 14:04:19 +02:00
Jonas Platte
ee029901d7
events: Spell out 'source' (don't use 'src' abbreviation) 2022-03-28 13:22:37 +02:00
Jonas Platte
c9b353a384
Re-export IdParseError type from ruma 2022-03-28 12:34:23 +02:00
Jonas Platte
571fa90b8d
identifiers: Rename Error to IdParseError
… because it's now exported from the ruma-common crate root.
2022-03-28 12:22:28 +02:00
Kévin Commaille
685bd34fd4 events: Enforce MessageContent to not be empty 2022-03-26 11:47:01 +01:00
Kévin Commaille
f9390c7c35 events: Create error type for extensible events conversion 2022-03-26 11:47:01 +01:00
Kévin Commaille
245bf75276 events: Replace Captions with MessageContent
Use a custom serde implementation
2022-03-26 11:47:01 +01:00
Kévin Commaille
93b4114a82 events: Deref MessageContent to a slice 2022-03-26 11:47:01 +01:00
Kévin Commaille
e4463dda22 events: Replace Thumbnails with a Vec 2022-03-26 11:47:01 +01:00
Jonas Platte
bf6687c92d
federation-api: Fix unstable-pre-spec tests 2022-03-26 09:36:58 +01:00
Jonas Platte
8f054ba39c
federation-api: Break up some large assert_matches! invocations 2022-03-26 09:16:42 +01:00
Kévin Commaille
70ef702124 events: Document extensible events 2022-03-25 18:07:04 +01:00
Kévin Commaille
4acfc8d591 events: Use stable field prefix for extensible events
Only transitional room messages will be sent while unstable
2022-03-25 18:07:04 +01:00