Commit Graph

1288 Commits (d4327d4cfcc0aa2dfb3d0c59cc55bc03634b5977)

Author SHA1 Message Date
Devin R 4ac9153be1 use RoomId and UserId over string, use setter method names in Room 2020-04-03 09:07:40 -04:00
Damir Jelić 514afbbc1b README: Fix the license name. 2020-04-03 14:51:51 +02:00
Damir Jelić 8063124087 README: Add badges for the code coverage and license. 2020-04-03 14:20:12 +02:00
Damir Jelić 74f1a21e42 rust-sdk: Updates for the new ruma crate versions. 2020-04-03 14:09:56 +02:00
Damir Jelić 12dc5212e3 rust-sdk: Remove a bunch of unused imports and unused variables. 2020-04-03 12:34:05 +02:00
Damir Jelić 2e1add049d travis: Run tarpaulin only once. 2020-04-03 11:49:18 +02:00
Damir Jelić 66e5629b3f travis: Enable coverage reports. 2020-04-03 11:25:54 +02:00
Damir Jelić 294ca108bb rust-sdk: Move some encryption specific imports under a cfg. 2020-04-03 10:42:03 +02:00
Damir Jelić 7c6d0d14dd crypto: Fix the sqlite tests. 2020-04-03 10:39:07 +02:00
Damir Jelić 670761376d async_client: Claim keys for missing sessions if we try to send in an encrypted room. 2020-04-03 10:30:32 +02:00
Damir Jelić 2dd84517b9 crypto: Expose the key-claiming methods in the clients. 2020-04-03 10:27:30 +02:00
Damir Jelić 3d0829b2a0 crypto: Add the new devices to the store. 2020-04-03 10:21:14 +02:00
Damir Jelić 6fce9b335a crypto: Add a method to check for missing Olm sessions for users. 2020-04-03 10:20:03 +02:00
Damir Jelić ff9bcdddb9 crypto: Use a SignedKey type when creating outbound Olm sessions. 2020-04-03 10:16:20 +02:00
Damir Jelić aa7bedbefd Merge branch 'ev-emitter' 2020-04-03 10:14:40 +02:00
Devin R a96286a5ff remove calculate in docs, fix unused imports 2020-04-02 18:22:52 -04:00
Devin R 187734f449 add test and docs for EventEmitter, fix review issues 2020-04-02 15:59:13 -04:00
Damir Jelić 8d487ac097 crypto: Allow the device store to be cloned. 2020-04-02 17:27:39 +02:00
Damir Jelić 785db205c3 crypto: Add initial key claiming handling. 2020-04-02 16:07:21 +02:00
Damir Jelić 913cc374d0 crypto: Calculate the deleted devices in a key query. 2020-04-02 14:52:15 +02:00
Devin R 55c25ce6ba fix encryption feature Mutex::lock instead of RwLock::read 2020-04-02 07:21:24 -04:00
Devin R c172507b5f cargo fmt/clippy 2020-04-02 07:06:21 -04:00
Damir Jelić 56084a7809 crypto: Initial support for device tracking. 2020-04-02 11:14:23 +02:00
Devin R 2ed152708c use inner event type for EventEmitter methods 2020-04-01 16:36:20 -04:00
Devin R 83bf8bc67c oops replace tracing::debug for crypto features 2020-04-01 16:36:20 -04:00
Devin R 5c418f3420 cargo fmt/clippy 2020-04-01 16:36:20 -04:00
Devin R f2b50677b9 fix example, use tokio::Mutex for all types that could be passed
in async thread spawn envs
2020-04-01 16:36:17 -04:00
Devin R 5612825762 add EventEmitter trait, clean up imports so new warnings are easier to see 2020-04-01 16:35:50 -04:00
Damir Jelić 5e22eb9faf room: Handle encryption events. 2020-04-01 16:06:28 +02:00
Damir Jelić 2020700673 crypto: Prepare the scaffolding for key queries and user tracking. 2020-04-01 15:37:00 +02:00
Damir Jelić fdb2028dfc Merge branch 'room-calculate-name' 2020-04-01 09:39:25 +02:00
Denis Kasak a298b7f9fd
Add Room::calculate_name convenience method.
Signed-off-by: Denis Kasak <dkasak@termina.org.uk>
2020-03-31 23:19:50 +02:00
Damir Jelić 453c9f3be5 Merge branch 'room-name' 2020-03-31 22:07:30 +02:00
Devin R c3f4a946cb remove split on UserId, update tests to correct domain 2020-03-31 15:18:27 -04:00
Damir Jelić 559a5847bb crypto: Implement group session loading for the sqlite store. 2020-03-31 16:22:45 +02:00
Damir Jelić b5b4542cd5 Cargo.toml: Switch to a release of sqlx. 2020-03-31 16:17:37 +02:00
Devin R df58c60d2e add tests in models files, run coverage 2020-03-31 09:01:48 -04:00
Damir Jelić 0d183daa3d crypto: Replace the decrypted to-device events in the sync response. 2020-03-31 13:38:44 +02:00
Devin R 0d79c3574e remove base_client method 2020-03-31 07:07:14 -04:00
Devin R 62159cc6dc fix review issues 2020-03-31 06:57:29 -04:00
Devin R 4391fb695e looked over for review 2020-03-30 14:18:08 -04:00
Damir Jelić ceeb685e1a crypto: Add the MemoryStore back. 2020-03-30 17:07:36 +02:00
Devin R 705464fb51 added a few todos, cargo fmt/clippy 2020-03-30 07:14:33 -04:00
Devin R 14a8d04a03 account data loop 2020-03-29 16:24:31 -04:00
Devin R c89ae2537e add account data, current room_id calc, unread, push ruleset, ignored users 2020-03-29 15:54:26 -04:00
Devin R 05b6f4679a cargo fmt/clippy 2020-03-29 08:07:25 -04:00
Devin R 4c7acd4b18 clean up presence updating and member state, add_presence_callback method for AsyncClient 2020-03-29 08:05:40 -04:00
Devin R 0147e8c0ac update_member, update_power methods for room_member 2020-03-28 15:05:37 -04:00
Devin R d4c9bb3cec cargo fmt 2020-03-28 09:08:34 -04:00
Devin R 9ee8a2d011 merged add-events, fix a few type changes and merge fails 2020-03-28 08:58:02 -04:00