Moritz Bitsch
0725b69abb
Clean up userdevicesessionid_uiaarequest BTreeMap
...
There is no need to encode or decode anything as we are not
saving to disk
4 years ago
Moritz Bitsch
fe8cfe0556
Add database migration to remove stored passwords
...
uiaarequests can contain plaintext passwords, which were stored on disk
4 years ago
Moritz Bitsch
3d25d46dc5
Use simple BTreeMap to store uiaa requests
...
some uiaa requests contain plaintext passwords which should never be
persisted to disk.
Currently there is no cleanup implemented (you have to restart conduit)
4 years ago
Jonas Platte
34d3f74f36
Use Arc for EventIds in PDUs
...
Upgrades Ruma again to make this work.
4 years ago
Jonas Platte
0183d003d0
Revert rename of Ruma<_> parameters
4 years ago
Jonas Platte
f712455047
Reduce EventId copying
4 years ago
Jonas Platte
58ea081762
Use int! macro instead of Int::from
4 years ago
Jonas Platte
bffddbd487
Simplify identifier parsing code
4 years ago
Jonas Platte
41fef1da64
Remove unnecessary .to_string() calls
4 years ago
Jonas Platte
892a0525f2
Upgrade Ruma
4 years ago
Jonas Platte
1fc616320a
Use struct init shorthand
4 years ago
Moritz Bitsch
9fccbb014a
Implement TURN server authentication with hmac
...
This is a prefered method to allow limited access to the TURN server
4 years ago
Moritz Bitsch
109892b4b7
Implement turn server settings
...
this fills out the infos in /_matrix/client/r0/voip/turnServer with
values specified in the server config
4 years ago
Nyaaori
c4bce1d0c7
Cleanup room.rs; replace unwraps with map_err
4 years ago
Nyaaori
86177faae7
Fix join panic bug
4 years ago
Nyaaori
d5d25fb064
Preserve all m.room.create entries when performing room upgrades
4 years ago
Nyaaori
8087a26a35
Make createRoom follow spec for m.room.create, allowing creation of spaces
4 years ago
Nyaaori
bbe16f8467
Update Ruma
4 years ago
Nyaaori
50f931a2fd
Cleanup and fix validation in report.rs, lower max report length, better html
4 years ago
Nyaaori
1541b93f45
Make reports look nicer and reduce spam potential, increase max report length to 1000 characters
4 years ago
Nyaaori
ccf501a420
Initial implementation of /report, fixing #13
4 years ago
Nyaaori
484a044b50
Remove device_one_time_keys_count from is_empty() sync checks, fixing sync issue as reported by Nekron
4 years ago
Nyaaori
d996d1b0e6
Always send device_one_time_keys_count, fixing #178
4 years ago
Nyaaori
9082a531c9
Make allow_encryption work again, fixing #115
4 years ago
Jonas Platte
91afa1e0e0
Make Result alias usable with any error type
4 years ago
Jonas Platte
f2ef5677e0
Reduce turbofish usage
...
Should make the code a little bit easier to read.
4 years ago
Jonas Platte
1c4d9af586
Enable more lints and apply their suggestions
4 years ago
Jonas Platte
09895a20c8
Upgrade Ruma
...
Co-authored-by: Timo Kösters <timo@koesters.xyz>
4 years ago
Nyaaori
636db8cfaa
Make allow_encryption work again, fixing #115
4 years ago
Nyaaori
6bc8fb2ae7
Implement admin check and add config option for allowing room creation
4 years ago
Timo Kösters
5c02dc7830
improvement: batch inserts for inserting pdus
4 years ago
Timo Kösters
cbee7fe111
improvement: deduplicate watchers
4 years ago
Jonas Platte
d68c93b5fa
Clean up (mostly automated with cargo clippy --fix)
4 years ago
Jonas Platte
979ec6b4fa
Upgrade ruma
4 years ago
Jonas Platte
910ad7fed1
Get rid of more unnecessary intermediate collections
4 years ago
Timo Kösters
2c8412fe58
improvement: more efficient sqlite
4 years ago
Jonathan de Jong
23c5ec8099
fix sync not firing on new events in room
4 years ago
Rasmus Thomsen
51245d34f1
fix(database): handle errors in config parsin or database creation
...
Showing the user a backtrace can be pretty confusing, so just printing
a nice error message makes errors easier to understand for end users.
fixes #121
4 years ago
Timo Kösters
71341ea05a
fix: make sure old events don't sneek into the timeline
4 years ago
Timo Kösters
2770ce2cf6
fix: avoid panic
4 years ago
Timo Kösters
43d693ca19
revert Arc<EventId> commit
4 years ago
Timo Kösters
875b345a5f
docs: update readme and version
4 years ago
Jonas Platte
487601a249
Remove unneeded intermediary container collection
4 years ago
Timo Kösters
4b39d7cb64
fix: batch key fetching
4 years ago
Kurt Roeckx
c53d79e287
fixup! Get required keys in batch when joining a room
4 years ago
Kurt Roeckx
984ad5ecd6
fixup! Get required keys in batch when joining a room
4 years ago
Kurt Roeckx
b546a5bf15
Let our server signing be valid for 1 week
...
It was valid for 2 minutes, which can result in the server being
asked too much for something that never changes.
4 years ago
Kurt Roeckx
a87519fb71
Get required keys in batch when joining a room
...
We now ask the trusted server for all keys in 1 request, instead of
asking each server individual for it's own keys.
4 years ago
Timo Kösters
73d876643c
improvement: make pdu cache capacity configurable
4 years ago
Timo Kösters
33738dbbc2
improvement: stop prev event fetching if too many events fail
4 years ago