Commit Graph

228 Commits (44fe6d1554eaa0a15314686974ab01f48c836588)

Author SHA1 Message Date
Timo Kösters d4c76f4654
chore: update ruma 3 years ago
Timo Kösters 5cb15551f3
improvement: use db compression 3 years ago
Timo Kösters 21f785d530
Merge branch 'correct-sendtxn' into pushers 3 years ago
Timo Kösters 6da40225bb
improvement: make state res actually work 3 years ago
Devin Ragotzy d0df8b495c Merge remote-tracking branch 'upstream/master' into correct-sendtxn 3 years ago
Timo Kösters 105f893cf3
chore: bump other dependencies to make it work 3 years ago
Rudi Floren f4039902d8 Bump Rocket to current HEAD 3 years ago
Timo Kösters 4155a47db1
feat: opentelemetry/jaeger support 3 years ago
Devin Ragotzy 0dd8a15c49 Fix leaves not being replaced by correct eventId in membership
Update ruma
3 years ago
Devin Ragotzy 0cc6448dbe Temp disable rust_2018_idioms for CI 3 years ago
Devin Ragotzy 8f283510aa Fix unused import clippy warning 3 years ago
Devin Ragotzy 6fd3e1d1dd Append state event that pass resolution to DB, update to tokio 1.1 3 years ago
Devin Ragotzy 66af1ff695 Update ruma and rocket to latest git rev and tokio to 1.0
Ruma updated the event signing validation code and there was a dep
resolving failure with serde rocket and tokio so I updated rocket latest and
tokio 1.0 to fix.
3 years ago
Devin Ragotzy 168ae8dca0 Fill event_map with all events that will be needed for resolution 3 years ago
Devin Ragotzy 8de0d9f9ce Remove StateStore trait from state-res collect events needed 3 years ago
Devin Ragotzy cdeb1236a2 Fix clippy warnings remove unused imports 3 years ago
Devin Ragotzy 63af3d3da0 Step 5 in /send just fetches state from incoming server 3 years ago
Devin Ragotzy 4b9976aa74 Update state-res, use the new Event trait
This also bumps ruma to latest and removes js_int infavor of the ruma
re-export
3 years ago
Devin Ragotzy 4a92a29b56 State resolution outline for /send 3 years ago
Timo Kösters d49911c5e0
Add 'm.login.token' authentication 3 years ago
Devin Ragotzy 73124629b7 Add general rules matching for pusher, calc unread msgs 3 years ago
Devin Ragotzy cd0c5c0566 Append state event that pass resolution to DB, update to tokio 1.1 3 years ago
Devin Ragotzy a897608025 Roll back tokio and rocket update since ruma's request is at 0.2 tokio 4 years ago
Devin Ragotzy 00436a32b0 Update ruma and rocket to latest git rev and tokio to 1.0
Ruma updated the event signing validation code and there was a dep
resolving failure with serde rocket and tokio so I updated rocket latest and
tokio 1.0 to fix.
4 years ago
Devin Ragotzy 88f3ee489b
Fill event_map with all events that will be needed for resolution 4 years ago
Devin Ragotzy 8a035880f0
Remove StateStore trait from state-res collect events needed 4 years ago
Devin Ragotzy 7c4d74bf9b
Fix clippy warnings remove unused imports 4 years ago
Devin Ragotzy 0ee239c9d7
Step 5 in /send just fetches state from incoming server 4 years ago
Devin Ragotzy 9e83d2b2d5
Update state-res, use the new Event trait
This also bumps ruma to latest and removes js_int infavor of the ruma
re-export
4 years ago
Devin Ragotzy 690c066064
State resolution outline for /send 4 years ago
Timo Kösters 2cf6fd57b7
improvement: don't send pdus to appservices if it isn't interested
TODO: we need to send pdus if a user of the appservice is in the room
but not the appservice user itself
4 years ago
Timo Kösters 6e5b35ea92
feat: implement appservices
this also reverts some stateres changes
4 years ago
Timo Kösters 45086b54b3
improvement: upgrade dependencies, fix timeline reload bug 4 years ago
Devin Ragotzy 164b1633d8
Update ruma to latest, renamed server keys and removed PduStub 4 years ago
Devin Ragotzy 27e686f9ff
Convert uses of serde_json::Value to CanonicalJsonObject 4 years ago
Devin Ragotzy acd144e934
Fix get_closest_parent and cleanup federation/send/:txn 4 years ago
Devin Ragotzy db8a0c5d69
Add closest_parent method to Rooms Db insert in order /send pdus 4 years ago
Devin Ragotzy 96dd3b2880
Update ruma to latest, fix unstable origin feature in ruma 4 years ago
Timo Kösters 151ef07fb3
docs: cross compile 4 years ago
Timo Kösters 9d1387954f
Update dependencies, remove dbgs 4 years ago
Timo Kösters 4964e21342
Merge remote-tracking branch 'origin/master' into federation 4 years ago
Timo Kösters bcd1fe1856
feat: admin room 4 years ago
Timo Kösters 0d6159c2da
improvement: get_missing_events route and cleanup 4 years ago
Timo Kösters ab332363ce
fix: don't send new requests to servers if we are already waiting 4 years ago
Timo Kösters e08dfd982b
improvement: look at SRV record when sending requests 4 years ago
Timo Kösters 19207845bc
Fix ruma dependency 4 years ago
Timo Kösters ea3aaa6b5c
improvement: more efficient /sync with gaps 4 years ago
Timo Kösters b7ab57897b
fix: sending slowness 4 years ago
Timo Kösters f7816b11de
feat: send messages over federation 4 years ago
Timo d1099e9224
Update dependencies 4 years ago
Timo Kösters 4e44fedbcd
fix: room list over federation 4 years ago
Timo Kösters c5313b3e8f
improvement: try out multiple servers when joining remote rooms 4 years ago
Timo Kösters 1f292c09f2
improvement: better federation joins 4 years ago
Timo Kösters e6b1f54857
Merge remote-tracking branch 'origin/master' into federation 4 years ago
Timo Kösters 12a8c9badd
fix: join rooms over federation 4 years ago
Timo Kösters 1e8fbd8d50
Update ruma version 4 years ago
Devin Ragotzy 3b40f3d60e Update state-res crate 4 years ago
Devin Ragotzy f46c2d1eec Fix review issues, move state-res to spec-comp branch 4 years ago
Timo Kösters 3f4cb753ee
improvement: add remaining key backup endpoints 4 years ago
Devin Ragotzy 672bf4f473 Cargo lock update and a few doc additions 4 years ago
Devin Ragotzy 846a0098c1 Split append_pdu -> append_pdu and build_and_append
Move all state event appending to append_state_pdu.
4 years ago
Devin Ragotzy cb68bf9e0c Use ring crate to generate StatHashes when saving stateid/statehash 4 years ago
Devin Ragotzy c4f5a0a631 Keep track of State at event for state resolution
feat: first steps towards joining rooms over federation
Add state-res as a dependency of conduit
Add reverse_topological_power_sort before append_pdu
Implement statehashstatid_pduid tree for keeping track of state
Clean up implementation of state_hash as key for tracking state
4 years ago
Timo f23fb32e95
fix: set limited to true when skipping messages in /sync 4 years ago
timokoesters e457e19088
feat: search pdus 4 years ago
Timo 69a7cb5142
fix dependency version 4 years ago
Timo 04eee089e0
feat: first steps towards joining rooms over federation 4 years ago
Jonas Platte 75ea0b3163
Update ruma 4 years ago
timokoesters 66bc25fcd3
feat: implement /keys/changes 4 years ago
timokoesters 21eb8d4fe3
fix: problems with pdu serialization 4 years ago
timokoesters 489cbc0a93
refactor: use <_> instead of <_parameter_name> 4 years ago
Devin Ragotzy 42e0102a2a
Conditionally emit rocket::http_verb attr macros if lib/bin 4 years ago
Jonas Platte 09561ccea3
Upgrade ruma 4 years ago
Devin Ragotzy 60381ddcf4 Update to latest ruma/master rev 4 years ago
Devin Ragotzy 61458536ab Merge branch 'master' of https://git.koesters.xyz/timo/conduit into ruma-mono 4 years ago
timokoesters d8e1248df6
improvement: switch to stable rust 4 years ago
Devin R 33bc666859 Use sync ephemeral events in sync Resposne (remove room_id)
Bump ruma to latest master which also fixes some server name as String
to now being of type Box<ServerName>.
4 years ago
Devin R 59cbf202e4 Cargo.lock updated while rebasing 4 years ago
Devin R d02685a4fd Update to latest ruma/ruma commit
This will most likely be the API that is released to crates.io so it
should be fairly stable...
4 years ago
Devin R 63e23154f3 Rebase with key backups and cross signing
Moved back to a fork of ruma with timo's key-backup and cross-signing
branch. Ephemeral events in sync responses are EphemeralRoomEventStub
(they also have no room_id like all of sync responses events)
4 years ago
Devin R 7c38e53839 Move to depend on ruma monorepo and ruma-events0.22 4 years ago
Timo Kösters b9de21949d Update to rocket master (#147)
Merge branch 'master' into rocket

Update to rocket master

Co-authored-by: timokoesters <timo@koesters.xyz>
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/147
4 years ago
timokoesters b83fba5c44
chore: update dependencies 4 years ago
timokoesters 05f1f73e10
improvement: upgrade to sled 0.32
BREAKING CHANGE: old databases are not compatible anymore
4 years ago
timokoesters a49a572d76
feat: cross-signing 4 years ago
timokoesters db685e0cf7
fix: update rocket version 4 years ago
timokoesters 13d474f6ee
fix: update ruma version 4 years ago
timokoesters b4d65ab67d
improvement: optimize /sync response 4 years ago
Jonas Platte 7526fd8602
Switch to the ruma meta-crate 4 years ago
timokoesters 08d19c3e0b
fix: broken dependencies 4 years ago
timokoesters a8df1acdfd
feat: load replies, forward pagination 4 years ago
timokoesters b192fddf2f
fix: show device display names 4 years ago
timokoesters 19c9e4b916
fix: room version 6 4 years ago
timokoesters 4e507ef706
feat: room visibility and aliases 4 years ago
timokoesters 18bf67748c
feat: redaction 4 years ago
timokoesters 1014388a9c
fix: one time keys are never removed 4 years ago
timokoesters d95e8b4880
fix: problem with to-device for all devices 4 years ago
timokoesters d544d28b6e
feat: image thumbnails 4 years ago
timokoesters 4fb79ebb4c
chore: update dependencies 4 years ago
Rudi Floren 00a9424719
feat: sytests 4 years ago
timokoesters 551308e9a8
Update dependencies and send displayname updates again 4 years ago
timokoesters 8f67c01efd
refactor: split database into multiple files, more error handling, cleaner code 4 years ago
timokoesters 4ca1ada73e
update ruma 4 years ago
timokoesters b02c568941
feat: notifications, simple permission systems 4 years ago
timokoesters fd1aea7e36
Update dependencies 4 years ago
timokoesters 120b6f4b95
Bump dependencies and fixes 4 years ago
timokoesters 1af6dd984a
More work on federation 4 years ago
timokoesters b0d9ccdb2d
Signing, basis for federation 4 years ago
timokoesters 80ddf80f17
work 4 years ago
gnieto fa9e127a1e Store hashed passwords (#7)
Use if let instead of unwrap

Default to invalid password if could not calculate

Move hash password methdo and return Result

Rename get_password method

Default to empty password when no pwd is received

Store hashed passwords

Store passwords hashed with Argon2 and verify password with that stored
hash.

Co-authored-by: Guillem Nieto <gnieto.talo@gmail.com>
4 years ago
timokoesters 040296c711
Add test support and impl dummy /read_markers 4 years ago
timokoesters 93b1d97166
Update readme and cargo.toml 4 years ago
Jonas Platte 38ab7c843e
Update error type of /register route 4 years ago
Jonas Platte c60402bf0d
Update ruma-client-api 4 years ago
timokoesters ddcd423e6f
feat: random tokens, sessions, guest usernames and device ids 4 years ago
timokoesters 10bb96fcf7
feat: room joining, room based /sync responses 4 years ago
timokoesters 884dc2867d
Move to rocket's async branch 4 years ago
timokoesters 8b8381bcc0
New PduEvent struct 4 years ago
timokoesters f9cfede2a8
fix: deserialize sync event body 4 years ago
timokoesters fa3226898c
feat: save pdus
PDUs are saved in a pduid -> pdus map. roomid -> pduleaves keeps track
of the leaves of the event graph and eventid -> pduid maps event ids to
pdus.
4 years ago
timokoesters 533260edd8
Add auth 4 years ago
timokoesters 73e04e71d7
Start work on event creation 4 years ago
timokoesters 744e0adfcf
Try to impl auth in ruma_wrapper 4 years ago
timokoesters 34a53ce20a
Better database structure 4 years ago
timokoesters 6fffcecf8e Updates 4 years ago
timokoesters c2c18b4651 feat: database 4 years ago
timokoesters cd777af41c feat: simple endpoint handlers 4 years ago
timokoesters 6264628c11 Initial commit 4 years ago