4736 Commits

Author SHA1 Message Date
Jonas Platte
9a1c8ec66e
Add a link to the Matrix room on the new issue page 2022-12-09 10:47:04 +01:00
Jonas Platte
1601dd6496
Add emoji in front of issue template names
… so it's faster to look for the right thing.
2022-12-09 10:46:53 +01:00
Kévin Commaille
922024c9e6 Update tracing-subscriber dependency
Removes dependency to ansi_term which is unmaintained
2022-11-30 14:11:58 +01:00
Jonas Platte
3211fccab0
Remove borrowing in requests 2022-11-28 14:02:35 +01:00
Kévin Commaille
61a9d65b71 events: Rename events::relation::Relations to BundledRelations 2022-11-25 22:33:37 +01:00
Kévin Commaille
80056c8a35 events: Add serialization test for reaction 2022-11-25 22:33:37 +01:00
Kévin Commaille
5faff343a0 events: Use Reference instead of events::poll::ReferenceRelation 2022-11-25 22:33:37 +01:00
Kévin Commaille
93bc8a60be events: Use Reference instead of events:🔑:verification::Relation 2022-11-25 22:33:37 +01:00
Kévin Commaille
e63896b916 events: Use Annotation instead of events::reaction::Relation 2022-11-25 22:33:37 +01:00
Kévin Commaille
6648954bd2 events: Move common relation structs under events::room::encrypted to events::relation 2022-11-25 22:33:37 +01:00
Kévin Commaille
aeaa4af776 events: Move relations under events::room::message to events::relation 2022-11-25 22:33:37 +01:00
Jonas Platte
a6ba268796 client-api: Make UiaaResponse enum exhaustive 2022-11-25 20:50:58 +01:00
Kévin Commaille
74161014be events: Add support for formatted body on KeyVerificationRequestEventContent 2022-11-25 20:19:52 +01:00
Kévin Commaille
583ee2cdfa events: Add support for bundled reference relations
According to MSC3267 / Matrix 1.5
2022-11-25 20:11:33 +01:00
Kévin Commaille
1ecd7effc0
events: Add tests for serde of encrypted relations 2022-11-25 18:51:12 +01:00
Kévin Commaille
03230013d9
events: Add constructor for events::room::encrypted::Replacement 2022-11-25 18:40:19 +01:00
Kévin Commaille
dc18b12506
events: Fix deserialization without relation 2022-11-25 18:40:19 +01:00
Kévin Commaille
0feb39298a api: Add support for Matrix v1.5 2022-11-25 14:13:56 +01:00
Kévin Commaille
5f8e72feac ci: Allow Matrix v1.5 links 2022-11-25 14:13:56 +01:00
Benjamin Kampmann
9c46d1143d
client-api: Add M_UNKNOWN_POS error kind (MSC3575) 2022-11-15 15:01:09 +00:00
Jonas Platte
28a665c3d9
Update feature list for Ruma's __ci feature 2022-11-15 09:49:04 +01:00
Jonas Platte
0a56dfb46e
common: Derive Default for (Incoming)RoomNetwork 2022-11-14 14:24:38 +01:00
Jonas Platte
ed100afddb
events: Add IgnoredUser::new 2022-11-14 10:36:15 +01:00
Kévin Commaille
dab2956039 events: Use a struct for parsing of EventContent attributes 2022-11-12 11:14:04 +01:00
Kévin Commaille
67abaf4de1 identifiers: Add From<OwnedId> impls for String 2022-11-12 11:13:34 +01:00
Kévin Commaille
c75d97772c identifiers: Deduplicate as_str() based impls between ID DSTs and owned IDs 2022-11-12 11:13:34 +01:00
Kévin Commaille
e8bec10c6d push: Make SimplePushRule generic over the type of the rule_id 2022-11-12 10:59:52 +01:00
Jonas Platte
ae3394a6df api: Turn metadata name and description fields into docstrings 2022-11-12 10:17:24 +01:00
Jonas Platte
bdb5950fe4 macros: Remove ruma_api! macro 2022-11-12 10:17:24 +01:00
Jonas Platte
80c060cb69 Remove usage of ruma_api! 2022-11-12 10:17:24 +01:00
Kévin Commaille
c5fb935472 macros: Add .m.rule.snake_case rename rule for StringEnum 2022-11-12 09:55:57 +01:00
Kévin Commaille
eecae05721
events: Change IgnoredUserListEventContent to use a map of empty structs 2022-11-11 21:48:14 +01:00
Jonas Platte
2500e8f8fa api: Make query_string parameter of make_endpoint_url non-optional
When Some(_), the argument would often be an empty string. By always
using the empty string to mean "no query", we avoid trailing a `?` on
URLs without having two parameter values that mean the same thing.
2022-11-11 11:27:07 +01:00
Jonas Platte
d25e40764b client-api: Fix warnings when compiling with client and without server feature 2022-11-11 11:09:32 +01:00
Jonas Platte
dd67745e4d events: Add convenience constructors for MessageType 2022-11-11 11:06:33 +01:00
Jonas Platte
9f11510427
client-api: Fix serialization of endpoints with optional path segment 2022-11-11 10:48:15 +01:00
Jonas Platte
a8ba82d585 api: Make EndpointError construction infallible
Simplifies error matching and preserves more information for
non-spec-compliant server errors.
2022-11-10 13:10:57 +01:00
Jonas Platte
7d018897b0
macros: Move ensure_feature_presence check from ruma_api to request / response 2022-11-10 11:33:18 +01:00
Jonas Platte
2451f33a64
api: Replace ruma_api! compile-time path check with a test 2022-11-10 11:33:17 +01:00
Jonas Platte
9195a5de18
api: Make VersionHistory fields private 2022-11-10 11:33:17 +01:00
Jonas Platte
08dcf1e224
api: Add VersionHistory::{deprecated_in, removed_in} 2022-11-10 11:33:17 +01:00
Jonas Platte
866b01d0c2
api: Rename VersionHistory::added_version to added_in
… and reword its documentation.
2022-11-10 11:33:17 +01:00
Jonas Platte
848ca9b225
api: Rework VersionHistory path accessors
* Return iterators
* Rename all_unstable_paths to unstable_paths
* Rename all_versioned_stable_paths to stable_paths
2022-11-10 11:33:17 +01:00
Jonas Platte
94990f60f2 events: Don't skip serializing empty content of redacted events 2022-11-09 17:11:50 +01:00
Damir Jelić
6d133971b0
events: Add support for MSC3783 in the key verification events 2022-11-09 16:45:24 +01:00
Kévin Commaille
05356d7d4e push: Add method to change the actions of push rules in a Ruleset 2022-11-09 14:45:12 +01:00
Kévin Commaille
96642e3a1b push: Add method to change the enabled state of push rules in a Ruleset 2022-11-09 14:45:12 +01:00
Kévin Commaille
f87714d73f push: Add method to insert a user push rule in a Ruleset 2022-11-09 14:45:12 +01:00
Kévin Commaille
a50f5f5cb2 push: Add method to get a push rule in a Ruleset 2022-11-09 14:45:12 +01:00
Kévin Commaille
aa2e905ce3 client-api: Use an enum to construct set_pushrule's Request 2022-11-09 14:45:12 +01:00