221 Commits

Author SHA1 Message Date
Kévin Commaille
d3ee7c4d74
docs: Fix some wording issues 2021-04-07 16:55:59 +02:00
Kévin Commaille
154f9b2d58
docs: Document compat feature uses 2021-04-07 12:47:44 +02:00
Kévin Commaille
2f406e63a4
docs: Add missing doc_cfg 2021-04-07 12:17:36 +02:00
Kévin Commaille
963400979b
docs: Harmonize ruma modules descriptions 2021-04-07 12:14:49 +02:00
Jonas Platte
74342765bb
events: Make ForwardedRoomKeyToDeviceEventContent non-exhaustive 2021-04-06 01:12:51 +02:00
Jonas Platte
34243d49ba
events: Add as_str and as_bytes methods for EventType 2021-04-05 21:49:50 +02:00
Jonas Platte
466b8679d6
Replace all uses of ruma_serde::empty::Empty
… and remove it from the public API.
2021-04-05 18:57:42 +02:00
Jonas Platte
b4da6b784a
Replace non-renaming uses of serde_json::{from_str, to_string} 2021-04-05 13:33:59 +02:00
Jonas Platte
1bf4157a89
Add favicon and logo URLs for rustdoc 2021-04-05 11:42:07 +02:00
Kévin Commaille
c6ab610451 events: Replace String with MxcUri for media URLs 2021-04-05 08:10:21 +02:00
Jonas Platte
39a8c26263
Release ruma-identifiers 0.18.1 2021-04-03 17:56:01 +02:00
Jonas Platte
83ee0e72e2
Release ruma-common 0.3.1 2021-04-03 17:21:55 +02:00
Jonas Platte
5b0c675cb8
events: Make IgnoredUserListEventContent non-exhaustive 2021-04-01 01:45:07 +02:00
Jonas Platte
914279010a
events: Remove outdated documentation 2021-04-01 01:43:18 +02:00
Jonas Platte
085dd492c7
events: Update comment 2021-04-01 01:39:22 +02:00
Jonas Platte
36df3e341a
Release ruma-common 0.3.0 2021-03-31 13:47:24 +02:00
Jonas Platte
69bece2a40
events: Fix construction of non-exhaustive struct in tests 2021-03-31 13:26:47 +02:00
Jonas Platte
4a926e0e64
Consistently use int! macro to create js_int::Ints from literals 2021-03-31 13:25:56 +02:00
Kévin Commaille
cdb998c83f Move ruma_events::room::power_levels::NotificationPowerLevels to ruma-common 2021-03-31 12:12:23 +02:00
Adam Blanchet
2e422c5d81
Create ImageInfo struct specific to AvatarEventContent
Add a new specific ImageInfo struct, with all the same fields,
except for `thumbnail_file`, to disallow encrypted room avatars.

Resolves: #397
2021-03-31 11:00:36 +02:00
Jonas Platte
12686fe6e3
Clean up std::fmt imports
We were pretty inconsistent about them before.
2021-03-25 16:32:08 +01:00
Jonas Platte
b79fd0c3aa
Release ruma-identifiers 0.18.0 2021-03-23 21:08:44 +01:00
Jonas Platte
c910d57b14
Release ruma-serde 0.3.1 2021-03-23 20:58:53 +01:00
Takayuki Maeda
9cfa3b075c deserialize empty string to none for avatar_url 2021-03-15 16:46:15 +01:00
Jonas Platte
4ced423612
Fix new clippy warnings 2021-03-01 18:38:41 +01:00
Jonas Platte
a20c75d536
Fix import grouping issues 2021-02-25 20:55:19 +01:00
Andi
6b0bf53601
events: Add message event serialization test 2021-02-18 19:12:58 +01:00
Jonas Platte
e659df73a1
Fix m.room.message serialization 2021-02-18 00:56:32 +01:00
Devin Ragotzy
12c294422b
Move new_content and relates_to fields to MessageEventContent struct
MessageEventContent used to be an enum, it now has a msgtype field where
the enum (now called MessageType) sits.
2021-02-13 00:29:07 +01:00
Jonas Platte
798cd49e9e
events: Use more specific MessageEvent type in room_message test 2021-02-12 20:09:34 +01:00
Akshay
a76d3e24a4
events: Support m.room.message events with custom msgtypes 2021-02-12 14:01:10 +01:00
Akshay
704e5f89f5
events: Replace serde(tag) by serde(untagged) for MessageEventContent
in preparation for adding a variant for custom `msgtype`s.
2021-02-12 14:01:10 +01:00
Akshay
526542c246
events: Replace derived Deserialize for MessageEventContent with a manual impl
Co-authored-by: Jonas Platte <jplatte+git@posteo.de>
2021-02-12 14:00:57 +01:00
Jonas Platte
317b2055a8
events: Fix tests for unstable-pre-spec 2021-02-12 13:41:54 +01:00
Jonas Platte
cd2c540e92
events: Make Custom* struct rest fields consistent 2021-02-12 11:24:07 +01:00
Akshay
6bbb42303b
Add event_type accessor method to event enums 2021-02-11 12:48:33 +01:00
Jonas Platte
0a10afe6da
Move m.room.message tests from src/ to tests/ 2021-02-08 12:49:46 +01:00
Akshay
8fadffa31d
events-macros: Use lookahead1 instead of parse().is_ok() 2021-02-06 18:23:40 +01:00
Jonas Platte
7846142690
events: Allow state_key to be empty in InitialStateEvent 2021-02-06 15:15:57 +01:00
Jonas Platte
891db9083b
Clean up cargo features 2021-02-02 19:21:45 +01:00
Jonas Platte
00121bdb4b
Fix inconsistent #[test] module naming 2021-02-02 11:44:30 +01:00
Akshay
adeb545062
Add push rule for .m.rule.reaction 2021-01-21 19:51:32 +01:00
Tilo Spannagel
8c109d3c0a
Add constructor for markdown formatted messages behind a feature flag
Signed-off-by: Tilo Spannagel <development@tilosp.de>
2021-01-21 15:53:03 +01:00
Jonas Platte
5dd3658324
Fix nightly CI 2021-01-18 16:22:43 +01:00
Amanda Graven
85037832d1
Minor comment spelling and formatting fixes 2021-01-18 16:12:28 +01:00
Jonas Platte
ca1f334ded
Remove documentation links from all Cargo.tomls
It was wrong for ruma-federation-api and useless for all others since
crates.io will link to docs.rs automatically if no link is given.
2021-01-17 17:00:09 +01:00
V02460
f5a0add846
Support reactions in an event's unsigned field 2021-01-10 00:47:50 +01:00
Jonas Platte
6f4d883e88
Fix integer literals in PDU tests
They were using a usize suffix which was only valid on 64bit targets.
2021-01-04 01:58:23 +01:00
Jonas Platte
3b37d77394
Clean up changelogs 2021-01-02 15:01:49 +01:00
Jonas Platte
b95ab27272
Release ruma-events 0.22.0-alpha.2 2021-01-02 14:49:00 +01:00