Commit Graph

289 Commits

Author SHA1 Message Date
Timo Kösters
b6b27b66c8 fix: don't allow unjoined users to send typing notifications 2022-04-07 17:07:33 +02:00
Nyaaori
4b28146ee7 Support room version 3 2022-04-07 16:44:50 +02:00
Nyaaori
d8a3b257f2 Enable room version 4 2022-04-07 16:36:27 +02:00
Nyaaori
714873694d Refactor room version support, add default room version config 2022-04-07 16:35:10 +02:00
Timo Kösters
d81216cad7 improvement: preparing for room version 9 2022-04-07 16:26:50 +02:00
Timo Kösters
df4c38cb61 fix: remove warnings 2022-04-07 13:22:32 +02:00
Timo Kösters
2808dd2000 Ruma upgrade 2022-04-07 12:58:48 +02:00
Timo Kösters
17ad5f0595 fix: checks for incoming cross signing changes 2022-04-07 12:56:18 +02:00
Timo Kösters
566833111c refactor: small improvements 2022-04-07 12:56:16 +02:00
chenyuqide
ee96a03d60 Update ruma 2022-04-07 12:56:16 +02:00
Jonathan de Jong
e9f87e1952 update ruma 2022-02-18 15:33:14 +01:00
Timo Kösters
b8eaa3be85 Merge branch 'redactfix' into 'next'
Redaction fix

Closes #235

See merge request famedly/conduit!298
2022-02-18 12:00:40 +00:00
Jonas Platte
27692a2f14 Remove useless serde roundtrips 2022-02-18 11:52:00 +01:00
Timo Kösters
6602f6114c fix: redacts can't error anymore 2022-02-13 15:47:58 +01:00
Jonathan de Jong
35b82d51cf fix compilations 2022-02-12 21:04:38 +01:00
Jonas Platte
accdb77315 Clean up tracing::instrument attributes
Remove it from request handler since there's already the context of the
request path, added through TraceLayer.
2022-02-12 16:38:47 +01:00
Jonas Platte
adeb8ee425 Remove no-op conversions 2022-02-12 15:03:07 +01:00
Jonas Platte
5fa9190117 Simplify return type of most route handlers 2022-02-12 12:56:08 +01:00
Jonas Platte
d1d2217019 Clean up error handling for server_server::get_server_keys_route 2022-02-12 12:56:07 +01:00
Jonas Platte
1f7b3fa4ac Port from Rocket to axum 2022-02-12 12:56:07 +01:00
Jonas Platte
5db4c001d1 Remove another unnecessary use of an event enum 2022-02-12 01:58:47 +01:00
Timo Kösters
8db7d2c025 Merge branch 'asonix/encourage-reqwest-reuse' into 'next'
Re-use a basic reqwest client in all possible cases

See merge request famedly/conduit!265
2022-02-04 11:27:41 +00:00
Jonas Platte
abb4b4cf0b Remove TryFrom, TryInto imports
They are no longer needed in the 2021 edition.
2022-02-03 13:24:04 +01:00
Aode (lion)
b39ddf7be9 Rename reqwest clients, mention cheap client clones in comment 2022-01-28 12:42:47 -06:00
Aode (lion)
1059f35fdc use pre-constructed client for well-known requests also 2022-01-27 10:37:04 -06:00
Aode (Lion)
f8d1c1a8af Re-use a basic request in all possible cases 2022-01-27 10:37:04 -06:00
Jonas Platte
756a41f22d Fix rustc / clippy warnings 2022-01-20 00:10:39 +01:00
Timo Kösters
8c90e7adfb refactor: fix warnings 2022-01-17 14:46:03 +01:00
Timo Kösters
ee8e72f7a8 feat: implement server ACLs 2022-01-17 14:35:38 +01:00
Timo Kösters
5bcc1324ed fix: auth event fetch order 2022-01-13 22:29:19 +01:00
Timo Kösters
54f4d39e3e improvement: don't fetch event multiple times 2022-01-13 22:29:17 +01:00
Timo Kösters
ee3d2db8e0 improvement, maybe not safe 2022-01-13 22:10:51 +01:00
Timo Kösters
83a9095cdc fix? 2022-01-13 22:10:51 +01:00
Timo Kösters
74951cb239 dbg 2022-01-13 22:10:51 +01:00
Timo Kösters
4b4afea2ab fix auth event fetching 2022-01-13 22:10:51 +01:00
Timo Kösters
c9c9974641 fix: stack overflows when fetching auth events 2022-01-13 22:10:50 +01:00
Jonas Platte
34d3f74f36 Use Arc for EventIds in PDUs
Upgrades Ruma again to make this work.
2021-12-16 13:55:24 +01:00
Jonas Platte
f712455047 Reduce EventId copying 2021-12-15 13:00:37 +01:00
Jonas Platte
bffddbd487 Simplify identifier parsing code 2021-12-15 13:00:37 +01:00
Jonas Platte
41fef1da64 Remove unnecessary .to_string() calls 2021-12-15 13:00:37 +01:00
Jonas Platte
892a0525f2 Upgrade Ruma 2021-12-15 13:00:37 +01:00
Nyaaori
86177faae7 Fix join panic bug 2021-11-07 07:57:15 +00:00
Jonas Platte
91afa1e0e0 Make Result alias usable with any error type 2021-10-13 12:25:58 +02:00
Jonas Platte
f2ef5677e0 Reduce turbofish usage
Should make the code a little bit easier to read.
2021-10-13 12:25:58 +02:00
Jonas Platte
1c4d9af586 Enable more lints and apply their suggestions 2021-10-13 10:24:39 +02:00
Jonas Platte
09895a20c8 Upgrade Ruma
Co-authored-by: Timo Kösters <timo@koesters.xyz>
2021-10-13 10:16:45 +02:00
Timo Kösters
5c02dc7830 improvement: batch inserts for inserting pdus 2021-09-14 14:33:46 +02:00
Jonas Platte
d68c93b5fa Clean up (mostly automated with cargo clippy --fix) 2021-09-13 20:58:58 +02:00
Jonas Platte
979ec6b4fa Upgrade ruma 2021-09-13 20:55:13 +02:00
Jonas Platte
910ad7fed1 Get rid of more unnecessary intermediate collections 2021-09-13 20:55:12 +02:00