3111 Commits

Author SHA1 Message Date
Devin Ragotzy
4cb7353161 Remove outdated TODOs 2021-01-24 20:44:41 -05:00
Devin Ragotzy
d7144e63b7 Update resolve methods docs for event_map 2021-01-24 20:44:41 -05:00
Devin Ragotzy
37bff47a8e Add clearer docs to auth_check 2021-01-24 20:44:41 -05:00
Devin Ragotzy
47b19fdc15 Remove StateStore trait, caller must collect all events needed 2021-01-24 20:44:41 -05: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
Jonas Platte
1b22c252f6
Update .github/CODEOWNERS 2021-01-18 21:03:01 +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
acf865092d
Add .github/CODEOWNERS
For automatic review requests based on the set of files changed.
2021-01-18 13:55:27 +01:00
Jonas Platte
daf2d463ba
ruma: Show all features on docs.rs 2021-01-17 22:40:11 +01:00
Jonas Platte
675cd7c6a4
Remove useless #[doc(inline)] 2021-01-17 22:38:29 +01:00
Jonas Platte
20bb3a76fc
Add an api feature to ruma 2021-01-17 22:37:59 +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
gnieto
a85b7031a3
Wrap PDUs in Raw on federation backfill endpoint
Wrap the PDU as done in all the other federation endpoints.
2021-01-17 16:57:30 +01:00
V02460
f5a0add846
Support reactions in an event's unsigned field 2021-01-10 00:47:50 +01:00
Jonas Platte
d8b268ed76
client: Fix import order 2021-01-08 21:32:40 +01:00
Jonas Platte
e4bd7939c0
Add missing dot 2021-01-08 21:01:43 +01:00
Jonas Platte
d39966442d
Update Code Formatting and Linting section in CONTRIBUTING.md 2021-01-08 21:00:24 +01:00
Jonas Platte
f42581850f
Don't trim trailing whitespace in markdown files 2021-01-08 20:59:57 +01:00
Jonas Platte
25b43d2bf9
Replace futures-util dev-dependency with tokio-stream 2021-01-07 15:11:26 +01:00
Jonas Platte
1f08175f04
identifiers-validation: Drop unused serde dependency 2021-01-06 13:37:59 +01:00
Jonas Platte
aaa8a5b855
identifiers-validation: Drop unused dev-dependencies 2021-01-06 13:37:09 +01:00
Devin Ragotzy
f4772e0fcb Make auth_events arg for auth_check be a ref, cleanup 2021-01-05 15:43:55 -05:00
Devin Ragotzy
b0ee71e401 Make event_map &mut and take fields in membership_change 2021-01-05 15:43:55 -05:00
Devin Ragotzy
94be5b0fef Update ruma and serde to latest 2021-01-05 15:43:55 -05:00
Devin Ragotzy
da14be3000 Fix tests to work with PDU event trait 2021-01-05 15:43:55 -05:00
Devin Ragotzy
9721042198 Turn pdu into trait to avoid having our own PDU type 2021-01-05 15:43:55 -05:00
Devin Ragotzy
05a4dd1bf0 Convert state-res to use possible ruma::ServerPdu 2021-01-05 15:43:55 -05:00
Devin Ragotzy
5299679c21 Use ruma::ServerPdu instead of local type 2021-01-05 15:43:55 -05:00
Devin Ragotzy
282270ed4f Start work on db less state-res 2021-01-05 15:43:55 -05:00
Devin Ragotzy
611d1a3d9c Add tests for resolve_incoming 2021-01-05 15:43:55 -05:00
Devin Ragotzy
dd2a115b94 Clean up tests, move setup into its own file 2021-01-05 15:43:55 -05:00
Devin Ragotzy
33bb319b45 Fix failing tests because clean overwrites resolved_state in resolve fn 2021-01-05 15:43:55 -05:00
Devin Ragotzy
55e889a11f Add method to resolve batches of conflicted events 2021-01-05 15:43:55 -05:00
Jonas Platte
1db0ad1bea
client: Replace futures_util::stream::try_unfold with async_stream::try_stream! 2021-01-04 16:12:12 +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
8de0776796
Stop relying on features activated through dev-dependencies 2021-01-04 01:51:36 +01:00
Jonas Platte
1c47963bef
Release ruma-client 0.5.0-alpha.1 2021-01-02 15:37:18 +01:00
Jonas Platte
a377ac87da
Release ruma 0.0.2 2021-01-02 15:35:45 +01:00
Jonas Platte
329537afef
Release new versions of ruma-*-api
* ruma-appservice-api 0.2.0-alpha.2
* ruma-client-api 0.10.0-alpha.2
* ruma-federation-api 0.1.0-alpha.1
* ruma-identity-service-api 0.0.1
* ruma-push-gateway-api 0.0.1
2021-01-02 15:17:32 +01:00
Jonas Platte
3b37d77394
Clean up changelogs 2021-01-02 15:01:49 +01:00
Jonas Platte
8e247a5ce2
Release ruma-api 0.17.0-alpha.2 2021-01-02 14:58:00 +01:00
Jonas Platte
b95ab27272
Release ruma-events 0.22.0-alpha.2 2021-01-02 14:49:00 +01:00
Jonas Platte
ecfb8a4a4d
Relase ruma-common 0.3.0-alpha.1 2021-01-02 14:34:17 +01:00