Commit Graph

  • df58c60d2e add tests in models files, run coverage Devin R 2020-03-31 09:01:48 -04:00
  • 0d183daa3d crypto: Replace the decrypted to-device events in the sync response. Damir Jelić 2020-03-31 13:38:44 +02:00
  • 0d79c3574e remove base_client method Devin R 2020-03-31 07:07:14 -04:00
  • 62159cc6dc fix review issues Devin R 2020-03-31 06:57:29 -04:00
  • 4391fb695e looked over for review Devin R 2020-03-30 14:18:08 -04:00
  • ceeb685e1a crypto: Add the MemoryStore back. Damir Jelić 2020-03-30 17:07:36 +02:00
  • 705464fb51 added a few todos, cargo fmt/clippy Devin R 2020-03-30 07:14:33 -04:00
  • 14a8d04a03 account data loop Devin R 2020-03-29 16:24:31 -04:00
  • c89ae2537e add account data, current room_id calc, unread, push ruleset, ignored users Devin R 2020-03-29 15:54:26 -04:00
  • 05b6f4679a cargo fmt/clippy Devin R 2020-03-29 08:07:25 -04:00
  • 4c7acd4b18 clean up presence updating and member state, add_presence_callback method for AsyncClient Devin R 2020-03-29 08:05:40 -04:00
  • 0147e8c0ac update_member, update_power methods for room_member Devin R 2020-03-28 15:05:37 -04:00
  • d4c9bb3cec cargo fmt Devin R 2020-03-28 09:08:34 -04:00
  • 9ee8a2d011 merged add-events, fix a few type changes and merge fails Devin R 2020-03-28 08:58:02 -04:00
  • b1027796c8 Merge branch 'add-events' into room-name Devin R 2020-03-28 08:36:30 -04:00
  • bd50e615a7 use tokio::test, cargo fmt/clippy Devin R 2020-03-28 08:27:16 -04:00
  • b760b32bae fix rebase swap Devin R 2020-03-28 08:12:52 -04:00
  • bb89db30cb remove unused import Devin R 2020-03-28 07:52:25 -04:00
  • 7062bdb484 fix slice match room_aliases Devin R 2020-03-27 20:17:06 -04:00
  • 6b5a357e33 use sync.json Devin R 2020-03-27 17:26:10 -04:00
  • 063d86af71 cargo fmt/clippy Devin R 2020-03-27 17:23:49 -04:00
  • bcdd81dc8c add test, AsyncClient room name methods Devin R 2020-03-27 17:22:11 -04:00
  • 011e77cf4b calculate room name internal Room method Devin R 2020-03-27 16:14:16 -04:00
  • b128a76c9c README: Add a badge pointing to the Matrix room. Damir Jelić 2020-03-28 12:44:33 +01:00
  • 2e195610b3 Cargo.toml: Bump our deps. Damir Jelić 2020-03-28 12:30:48 +01:00
  • e8b5534a71 start handle_power_levels Devin R 2020-03-28 07:07:50 -04:00
  • 090600e6aa restructure folders, add User, fill out RoomMember, handle prescence. Devin R 2020-03-28 06:58:30 -04:00
  • e76e56af0d travis: Test the sqlite crypto store. Damir Jelić 2020-03-28 11:50:59 +01:00
  • cc7e6c6ed3 Cargo.toml: Depend on olm_rs/ruma-events from github. Damir Jelić 2020-03-28 11:50:20 +01:00
  • c2022180ad fix slice match room_aliases Devin R 2020-03-27 20:17:06 -04:00
  • 3df15b72eb use sync.json Devin R 2020-03-27 17:26:10 -04:00
  • 82f8af4c08 cargo fmt/clippy Devin R 2020-03-27 17:23:49 -04:00
  • a29ae2a62e add test, AsyncClient room name methods Devin R 2020-03-27 17:22:11 -04:00
  • 20618e7a20 calculate room name internal Room method Devin R 2020-03-27 16:14:16 -04:00
  • 85f344c32e crypto: Add the ability to store group sessions to the sqlite store. Damir Jelić 2020-03-27 17:01:21 +01:00
  • 23065a5aa3 crypto: Use an upsert for the account saving. Damir Jelić 2020-03-27 16:00:40 +01:00
  • c3654bd03f crypto: More cleanup in the sqlite store. Damir Jelić 2020-03-27 14:35:51 +01:00
  • e4dcca550c crypto: Move the sessions cache into the cryptostore. Damir Jelić 2020-03-27 12:09:54 +01:00
  • fca8062da0 crytpo: Implement session storing/loading for the sql store. Damir Jelić 2020-03-27 09:24:15 +01:00
  • 7595cab178 async_client: Allow setting the initial device display name. Damir Jelić 2020-03-27 09:22:29 +01:00
  • ddaf630063 crypto: Retire the memory store. Damir Jelić 2020-03-26 12:24:53 +01:00
  • 485296bc34 async_client: Replace the events with decrypted ones. Damir Jelić 2020-03-26 11:23:39 +01:00
  • abe13d7a2d crypto: Make the session stores thread safe. Damir Jelić 2020-03-26 11:22:40 +01:00
  • 50167e7988 Cargo.toml: Set the correct license. Damir Jelić 2020-03-26 10:04:08 +01:00
  • bb3b59ac37 crypto: Add initial support to decrypt megolm encrypted events. Damir Jelić 2020-03-25 15:03:10 +01:00
  • ae4d90057a crypto: Wrap inbound group sessions. Damir Jelić 2020-03-25 11:32:40 +01:00
  • d4f0799e6c crypto: Create inbound sessions from room key events. Damir Jelić 2020-03-24 17:25:01 +01:00
  • 765108a10c machine: Better room key parsing. Damir Jelić 2020-03-24 16:21:06 +01:00
  • c72a5defee rust-sdk: Changes for the new ruma-api version. Damir Jelić 2020-03-24 16:18:56 +01:00
  • 4759dea9bd crypto: Decrypt to-device events. Damir Jelić 2020-03-23 16:14:10 +01:00
  • 9c467d40e0 Cargo.toml: Switch to olm-rs on gitlab. Damir Jelić 2020-03-21 16:50:33 +01:00
  • 4215f98e91 crypto: Add initial code for olm message decryption. Damir Jelić 2020-03-21 16:41:48 +01:00
  • 70dda32949 async_client: Don't assume that there are any state events. Damir Jelić 2020-03-14 18:47:56 +01:00
  • 39dd9280cb rust-sdk: Document our feature flags. Damir Jelić 2020-03-19 13:55:58 +01:00
  • 426fe1df0f crypto: Propagate a sqlite store error correctly. Damir Jelić 2020-03-19 13:55:35 +01:00
  • 1b8b3da733 rust-sdk: Add initial tracing/logging setup. Damir Jelić 2020-03-19 13:55:04 +01:00
  • 6efd216f35 cryptpo: Add test that the account is updated correctly in the store. Damir Jelić 2020-03-19 09:39:22 +01:00
  • 06722635e7 crypto: Add missing license headers. Damir Jelić 2020-03-19 09:37:15 +01:00
  • 5adab040e6 crypto: Restore the account if we're using the sqlite store. Damir Jelić 2020-03-18 16:05:59 +01:00
  • 4aba058695 crypto: Hook up the crypto store to the Olm machine. Damir Jelić 2020-03-18 15:50:32 +01:00
  • d7ab847b98 store: Loading an account can fail because there is no account. Damir Jelić 2020-03-18 14:29:01 +01:00
  • 114911f800 base_client: Only import the std Result type if encryption is enabled. Damir Jelić 2020-03-18 14:17:22 +01:00
  • 7b70cb7e41 rust-sdk: Rework our error handling. Damir Jelić 2020-03-18 14:15:56 +01:00
  • f517ac6f37 store: Add a store specific error type. Damir Jelić 2020-03-18 12:38:47 +01:00
  • 5db9eadd89 Cargo.toml: Clean up our dependencies. Damir Jelić 2020-03-18 10:56:26 +01:00
  • 6fb29451ce crypto: Add a memory only crypto store. Damir Jelić 2020-03-18 10:42:46 +01:00
  • 3b1f863419 crypto: Check the shared state of the account when checking for equality. Damir Jelić 2020-03-18 10:42:11 +01:00
  • 7a11a57b41 crypto: Add initial crypto store. Damir Jelić 2020-03-18 09:41:49 +01:00
  • 00138f7ae5 crypto: Expose the pickling methods for the account. Damir Jelić 2020-03-18 09:38:41 +01:00
  • 708a8b1b06 Cargo.toml: Use tokio's delay_for instead of async-std's sleep. Damir Jelić 2020-03-16 13:31:03 +01:00
  • bd53e18aa9 Cargo.toml: Use the tokio async test macro. Damir Jelić 2020-03-16 13:24:54 +01:00
  • aa1e69e98b README: Add the build status. Damir Jelić 2020-03-15 13:02:20 +01:00
  • 877d8257ef Revert "travis: Add Windows to the CI." Damir Jelić 2020-03-15 13:00:00 +01:00
  • cd152d97f1 travis: Add Windows to the CI. Damir Jelić 2020-03-15 12:55:50 +01:00
  • 78842d5c2c travis: cargo fmt doesn't require the feature flags. Damir Jelić 2020-03-15 12:43:11 +01:00
  • b82b65ab09 travis: Add initial travis config. Damir Jelić 2020-03-15 12:35:35 +01:00
  • 2d8165c113 Cargo.toml: Fix the olm-rs dependency. Damir Jelić 2020-03-14 12:22:36 +01:00
  • 7f7c0657f9 Cargo.toml: Update the ruma deps. Damir Jelić 2020-03-14 10:28:46 +01:00
  • fb6c6c89e8 crypto: Update to the ruma-event renames. Damir Jelić 2020-03-13 16:58:59 +01:00
  • 6438444275 base_client: Restore the olm machine if a session given at client creation. Damir Jelić 2020-03-12 16:28:02 +01:00
  • 545ebe8d9c crytpo: Get the one-time keys count out of the sync response as well. Damir Jelić 2020-03-12 16:14:43 +01:00
  • 8867b198f7 base_client: Forward the sync response to our olm machine. Damir Jelić 2020-03-12 15:41:11 +01:00
  • 2b389a8440 crypto: Mark the Account as Send. Damir Jelić 2020-03-11 11:44:45 +01:00
  • e271b17766 async_client: Upload encryption keys in the sync_forever method. Damir Jelić 2020-03-11 11:43:58 +01:00
  • 33ee5cce61 async_client: Fix the user agent. Damir Jelić 2020-03-11 11:43:31 +01:00
  • bc4416e7cd async_client: Add a method to upload encryption keys. Damir Jelić 2020-03-11 11:42:59 +01:00
  • e7d6a5a834 base_client: Expose some olm machine methods. Damir Jelić 2020-03-11 10:10:43 +01:00
  • e7b32ea155 crypto: Fix the one-time-key count updating. Damir Jelić 2020-03-11 10:09:00 +01:00
  • f3816d04f2 base_client: Create a Olm machine after logging in. Damir Jelić 2020-03-11 10:08:22 +01:00
  • 22a9154bd3 crypto: Expose some sturcts to be used by the clients. Damir Jelić 2020-03-11 10:06:33 +01:00
  • f15b7cccea crypto: Require a borrow of the user id when creating a new Olm machine. Damir Jelić 2020-03-11 10:04:04 +01:00
  • 740bc2a6c1 machine: Add a method to get the key tuple that need to be uploaded. Damir Jelić 2020-03-10 14:06:30 +01:00
  • 3e88839a68 crypto: Use ruma structs for the one-time keys as well. Damir Jelić 2020-03-10 13:41:14 +01:00
  • 003d514c14 crypto: Use ruma structs to represent the generated device keys. Damir Jelić 2020-03-10 13:02:14 +01:00
  • c41d3873b6 rust-sdk: Cleanup the docs and fix the examples up. Damir Jelić 2020-03-02 11:31:03 +01:00
  • de154e272a crypto: Add one-time key signing support. Damir Jelić 2020-02-29 11:13:57 +01:00
  • 0288376cfe async_client: Add a timeout to the sync forever even if the sync was successful. Damir Jelić 2020-02-28 10:33:17 +01:00
  • 8181d96bfb crypto: Rename the uploaded key count variable. Damir Jelić 2020-02-26 09:36:52 +01:00
  • b171f64f1d crypto: Use the serde feature of olm-rs. Damir Jelić 2020-02-26 09:18:10 +01:00
  • 7605f7e6e8 crypto: Remove a lingering println. Damir Jelić 2020-02-25 18:01:49 +01:00