1693 Commits

Author SHA1 Message Date
Ragotzy.devin
0381190bdb
Add is_compatible method to event content enums to fix Any*Event deserialization
… and add some benchmarks for it
2020-06-15 23:59:31 +02:00
Jonas Platte
c40e3974e7
Remove ruma_events::InvalidEvent 2020-06-15 22:59:49 +02:00
Jonas Platte
418f92153d
ruma-client-api: Re-add r0::push::Action as deprecated, update change log 2020-06-15 19:21:04 +02:00
Jonas Platte
1d954f3089
Deprecate / remove re-exports from ruma_common 2020-06-15 19:20:34 +02:00
Jonas Platte
83d8f8c43e
Move some types from ruma_events::push_rules to ruma_common::push 2020-06-15 19:05:17 +02:00
Ragotzy.devin
3ec0936a28
Add back ruma-events/tests/stripped.rs 2020-06-15 11:37:26 +02:00
Isaiah Inuwa
9074e4c17a Update event creation endpoints to r0.6.1 2020-06-14 20:35:44 -05:00
Jonas Platte
43ae129ce2
Add a test to get_member_events 2020-06-14 01:09:52 +02:00
Ragotzy.devin
9dab2f5b1f
Fix clippy warning in nightly CI 2020-06-13 14:02:53 +02:00
Jonas Platte
9e04d648ca
events: Make almost all enums non_exhaustive 2020-06-13 00:32:44 +02:00
Jonas Platte
40d3c8ae66
events: Remove stripped.rs (whose mod declaration was already removed previously) 2020-06-13 00:28:29 +02:00
Jonas Platte
a9189d7db3
events: Remove EventJson from presence tests 2020-06-13 00:26:57 +02:00
Devin R
a6feed7dcb Convert Timeline's events field AnyRoomEvent -> AnyRoomEventStub 2020-06-12 22:31:56 +02:00
Devin R
a4dd53ef98 Use AnyStateEventStub for /sync response state events 2020-06-12 01:42:24 +02:00
Ragotzy.devin
be0838e7d3
Change EncryptedEventContent from StateEventContent to MessageEventContent
… and add it to AnyMessageEventContent
2020-06-11 23:48:57 +02:00
Jonas Platte
9f93d20a34
Add back temporarily commented-out modules 2020-06-11 22:30:58 +02:00
Jonas Platte
0a788c1273
Integrate ruma-events 2020-06-10 22:20:41 +02:00
Jonas Platte
fbf0deacfe
Re-rustfmt ruma-events 2020-06-10 22:17:59 +02:00
Jonas Platte
f304c04d1d Add 'ruma-events/' from commit '00692d532e26f58d48ead9589dc823403c6e59a5'
git-subtree-dir: ruma-events
git-subtree-mainline: d59a616e2c363507a89c92f34aa67e86ee2cfb49
git-subtree-split: 00692d532e26f58d48ead9589dc823403c6e59a5
2020-06-10 22:07:24 +02:00
Jonas Platte
00692d532e
Add a simple to-device test 2020-06-10 22:03:25 +02:00
Jonas Platte
900e9e324b
Add to-device event enum 2020-06-10 21:09:20 +02:00
Jonas Platte
bc5b7aa3e2
Add RedactionEventStub, event enums 2020-06-10 21:04:03 +02:00
Ragotzy.devin
2a91dc1eb7
Remove event_enum! and only use event_content_enum 2020-06-10 20:51:41 +02:00
Ragotzy.devin
92a2dfa2e8
Uncomment all event enum variants, convert remaining ruma_event! usages 2020-06-10 13:10:50 +02:00
Devin R
aea827a199 Make event_enum! error message more helpful 2020-06-10 12:35:40 +02:00
Devin R
86ca6bb39d Add trybuild tests for event_enum! macro 2020-06-10 12:35:40 +02:00
Jonas Platte
36d7ee2676
Add EphemeralRoomEventStub 2020-06-10 10:29:00 +02:00
Jonas Platte
10ad9760d6 Extend MembershipChange::ProfileChanged 2020-06-10 09:43:14 +02:00
Jonas Platte
b33e57c589
Remove support for room events from ruma_event! 2020-06-10 00:24:17 +02:00
Jonas Platte
a7a16ccfcc
Delete old tests 2020-06-10 00:20:01 +02:00
Jonas Platte
47a4dc51c6
Add TagEvent type alias 2020-06-10 00:19:33 +02:00
Jonas Platte
7491b33e81
Add MemberEvent type alias 2020-06-09 23:38:14 +02:00
Ragotzy.devin
c2b1c9897b
Any event enum macro implementation (also generates event content enums) 2020-06-09 23:31:31 +02:00
Jonas Platte
b0d775a535
Restore unsigned.redacted_because 2020-06-09 17:02:08 +02:00
Jonas Platte
9478050792
Remove stripped module 2020-06-09 17:01:08 +02:00
Jonas Platte
a317ae6340
Add and re-export remaining event kinds 2020-06-09 16:58:58 +02:00
Jonas Platte
49e4d35db7
Adopt matrix-doc iv description clarification
See https://github.com/matrix-org/matrix-doc/pull/2492
2020-06-09 14:08:49 +02:00
Ragotzy.devin
1fdf986bae
Add RedactionEvent and convert RedactionEventContent to struct def
PresenceEventContent and RedactionEventContent now also derive *EventContent
2020-06-09 12:43:21 +02:00
Jonas Platte
647130c0fb
Clean up lib.rs 2020-06-09 02:24:06 +02:00
Jonas Platte
d377df88b8
Add content_enums::AnyToDeviceEventContent
… and remove the now outdated to_device module
2020-06-09 02:22:21 +02:00
Jonas Platte
abdc7ff2f7
Convert m.key.verification.start ot the new API 2020-06-09 02:13:07 +02:00
Jonas Platte
beabaec03e
Update AnyMessageEventContent 2020-06-09 02:05:36 +02:00
Jonas Platte
886320cbf4
Remove event_enums.rs, event enums will be generated 2020-06-09 02:03:00 +02:00
Jonas Platte
1373d4daaf
Rename ephemeral_event to ephemeral_room_event 2020-06-09 01:56:20 +02:00
Jonas Platte
924ff5096b
Bring back direct, dummy, push_rules 2020-06-09 01:54:58 +02:00
Jonas Platte
63a2e5e4eb
Fix tests 2020-06-09 01:53:24 +02:00
Jonas Platte
1e365c6a2d
Re-introduce dedicated event types as type alises 2020-06-09 01:40:52 +02:00
Jonas Platte
d4a196f682
Update ReceiptEventContent representation
… and implement Deref, DerefMut for it
2020-06-09 01:33:40 +02:00
Jonas Platte
1f2c186ce1
Remove ToDeviceEventContent
… since any event can be sent using to-device messaging
2020-06-09 01:22:50 +02:00
Ragotzy.devin
6a0a10fcff
Add BasicEventContent derive and create AnyBasicEventContent enum
Also remove PresenceEventContent derive and expand code gen
2020-06-08 23:51:22 +02:00