Jonas Platte
cd0fc1865c
client-api: Panic if capability serialization fails
...
There could only be a serialization failure if there is a bug in serde
or serde_json.
2021-02-15 16:01:19 +01:00
Jonas Platte
408545d287
client-api: Improve docs for Capabilities
2021-02-15 15:37:43 +01:00
Jonas Platte
5aba8935ad
client-api: Improve docs for Capabilities::set
2021-02-15 15:32:42 +01:00
Jonas Platte
e152b3cc54
client-api: Shorten Capabilities::get
2021-02-15 15:31:41 +01:00
Jonas Platte
918701dbff
client-api: Don't import serde_json::Error
2021-02-15 15:30:44 +01:00
PunitLodha
f9eefaf02b
client-api: Add get and set methods to Capabilities
2021-02-15 15:20:17 +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 msgtype
s
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
Nym Seddon
5a7dac446e
api: Add identity service status endpoint
2021-02-11 21:26:37 -06:00
Jonas Platte
42f1ddb222
common: Rename Medium::{MSISDN => Msisdn}
2021-02-11 19:08:09 +01:00
Jonas Platte
5b004d5ed7
Don't import serde_json::Map
2021-02-11 19:00:57 +01:00
Jonas Platte
a361bf9a8c
Import serde_json::Value as JsonValue
2021-02-11 19:00:19 +01:00
Akshay
6bbb42303b
Add event_type
accessor method to event enums
2021-02-11 12:48:33 +01:00
Jonas Platte
ed6e55a22f
Re-format
2021-02-09 15:42:40 +01:00
Jonas Platte
2ef769803c
Update .rustfmt.toml
...
`merge_imports` has been deprecated in favor of the new, more general
setting `imports_granularity`.
2021-02-09 15:42:25 +01:00
Jonas Platte
292c5ead54
ruma: Enable all Cargo features + docsrs cfg on docs.rs
2021-02-08 20:47:42 +01:00
Jonas Platte
c7c11b2f3e
Add more documentation about ruma crate features
2021-02-08 20:47:10 +01:00
Jonas Platte
44a0bebd09
Fix links in docs
2021-02-08 20:46:57 +01:00
Jonas Platte
bd9c1c87b6
Add 'Getting started' to README.md
2021-02-08 20:31:04 +01:00
Jonas Platte
1166af5a35
Fix a typo
2021-02-08 20:19:59 +01:00
Jonas Platte
b6a9293d37
Add missing badges to READMEs
2021-02-08 20:14:34 +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
f2d9e5b019
events-macros: Reduce turbofish usage
2021-02-06 14:55:32 +01:00
Julian Sparber
d6aa37c848
ruma: add unstable-synapse-quirks
...
This feature is used in ruma-client-api.
2021-02-05 14:40:15 +01:00
Julian Sparber
f8eedfe44d
client-api: use authentication for profile api for synapse
2021-02-05 13:49:12 +01:00
Akshay
1c0dab5a47
api: Allow cfg attributes on rate_limited and authentication metadata fields
2021-02-05 12:47:43 +01:00
Jonas Platte
d8c5c326e6
serde: Simplify Deserializer implementation for ValOrVec
2021-02-03 19:27:21 +01:00
Jonas Platte
891db9083b
Clean up cargo features
2021-02-02 19:21:45 +01:00
Jonas Platte
c692fe5565
identity-service-api: Add missing feature unstable-exhaustive-types
2021-02-02 19:18:10 +01:00
Jonas Platte
c769d9602d
client-api: Remove unstable-synapse-quirks from key backups
...
The spec has been adjusted to follow Synapse.
2021-02-02 19:17:57 +01:00
Jonas Platte
00121bdb4b
Fix inconsistent #[test] module naming
2021-02-02 11:44:30 +01:00
Jonas Platte
2edddd519e
Remove redundant imports
2021-02-01 19:17:52 +01:00
Devin Ragotzy
8fad462d8c
Fix push rule precedence when converting to RulesIter
2021-01-30 18:00:57 +01:00
Jonas Platte
bba442580d
client-api: Make directory::PublicRoomsChunk non-exhaustive
2021-01-29 15:32:22 +01:00
Jonas Platte
d14213ab3e
client-api: Make device::Device non-exhaustive
2021-01-29 15:32:07 +01:00
Jonas Platte
dd5b2db4d5
Remove weird newline
2021-01-29 15:24:02 +01:00
Akshay
b087cf75b7
Set the default Content-Type for requests to application/json
2021-01-22 17:39:06 +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
cc355d8c77
Update Status section in README.md
2021-01-19 12:45:13 +01:00
Jonas Platte
2705b27df1
Remove useless questionmark + Ok
...
Thanks, clippy!
2021-01-19 11:46:40 +01:00
Jonas Platte
275294f44e
Update .github/CODEOWNERS
2021-01-19 11:22:19 +01:00
gnieto
0635b40729
Verify only the required signatures on verify_event
( #394 )
...
The spec says that the required signatures for a signed event is the
signature of sender's server (unless is a third party invite) and the
`event_id` server (in v1 and v2 room versions).
This changes the previous behaviour, which tried to verify the
signatures for all the servers in the `PublicKeyMap`, instead of
checking only the required signatures.
Relevant spec section:
https://matrix.org/docs/spec/server_server/r0.1.4#validating-hashes-and-signatures-on-received-events
2021-01-18 23:21:47 +01:00