Commit graph

51 commits

Author SHA1 Message Date
Devin R
2ed152708c use inner event type for EventEmitter methods 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ć
2020700673 crypto: Prepare the scaffolding for key queries and user tracking. 2020-04-01 15:37:00 +02:00
Devin R
c3f4a946cb remove split on UserId, update tests to correct domain 2020-03-31 15:18:27 -04:00
Devin R
df58c60d2e add tests in models files, run coverage 2020-03-31 09:01:48 -04:00
Devin R
62159cc6dc fix review issues 2020-03-31 06:57:29 -04:00
Devin R
705464fb51 added a few todos, cargo fmt/clippy 2020-03-30 07:14:33 -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
4c7acd4b18 clean up presence updating and member state, add_presence_callback method for AsyncClient 2020-03-29 08:05:40 -04:00
Devin R
9ee8a2d011 merged add-events, fix a few type changes and merge fails 2020-03-28 08:58:02 -04:00
Devin R
b1027796c8 Merge branch 'add-events' into room-name 2020-03-28 08:36:30 -04:00
Devin R
bd50e615a7 use tokio::test, cargo fmt/clippy 2020-03-28 08:27:16 -04:00
Devin R
b760b32bae fix rebase swap 2020-03-28 08:12:52 -04:00
Devin R
7062bdb484 fix slice match room_aliases 2020-03-28 07:47:50 -04:00
Devin R
063d86af71 cargo fmt/clippy 2020-03-28 07:47:50 -04:00
Devin R
bcdd81dc8c add test, AsyncClient room name methods 2020-03-28 07:47:50 -04:00
Devin R
011e77cf4b calculate room name internal Room method 2020-03-28 07:47:50 -04:00
Devin R
090600e6aa restructure folders, add User, fill out RoomMember, handle prescence. 2020-03-28 06:58:30 -04:00
Devin R
c2022180ad fix slice match room_aliases 2020-03-27 20:17:06 -04:00
Devin R
82f8af4c08 cargo fmt/clippy 2020-03-27 17:23:49 -04:00
Devin R
a29ae2a62e add test, AsyncClient room name methods 2020-03-27 17:22:11 -04:00
Devin R
20618e7a20 calculate room name internal Room method 2020-03-27 16:14:16 -04:00
Damir Jelić
bb3b59ac37 crypto: Add initial support to decrypt megolm encrypted events. 2020-03-25 15:03:10 +01:00
Damir Jelić
4759dea9bd crypto: Decrypt to-device events. 2020-03-23 16:14:10 +01:00
Damir Jelić
70dda32949 async_client: Don't assume that there are any state events. 2020-03-19 14:17:56 +01:00
Damir Jelić
1b8b3da733 rust-sdk: Add initial tracing/logging setup. 2020-03-19 13:55:04 +01:00
Damir Jelić
4aba058695 crypto: Hook up the crypto store to the Olm machine. 2020-03-18 15:50:32 +01:00
Damir Jelić
114911f800 base_client: Only import the std Result type if encryption is enabled. 2020-03-18 14:17:22 +01:00
Damir Jelić
7b70cb7e41 rust-sdk: Rework our error handling. 2020-03-18 14:15:56 +01:00
Damir Jelić
6438444275 base_client: Restore the olm machine if a session given at client creation. 2020-03-12 16:28:02 +01:00
Damir Jelić
545ebe8d9c crytpo: Get the one-time keys count out of the sync response as well. 2020-03-12 16:14:43 +01:00
Damir Jelić
8867b198f7 base_client: Forward the sync response to our olm machine. 2020-03-12 15:41:11 +01:00
Damir Jelić
e7d6a5a834 base_client: Expose some olm machine methods. 2020-03-11 10:10:43 +01:00
Damir Jelić
f3816d04f2 base_client: Create a Olm machine after logging in. 2020-03-11 10:08:22 +01:00
Damir Jelić
c41d3873b6 rust-sdk: Cleanup the docs and fix the examples up. 2020-03-02 11:31:03 +01:00
Damir Jelić
dee13421f0 rust-sdk: Switch the license to Apache 2.0. 2020-02-21 16:54:05 +01:00
Damir Jelić
63e0191f57 client: Fix clippy warnings. 2020-02-21 14:29:46 +01:00
Damir Jelić
49a24b6305 client: Add missing docs. 2020-02-21 14:29:25 +01:00
Damir Jelić
41a183b4c0 nio: Upgrade ruma-client-api. 2019-12-04 19:31:33 +01:00
Damir Jelić
38ddad1874 async_client: Properly handle the EventResult for our timeline. 2019-11-26 20:47:02 +01:00
Damir Jelić
4daea54a33 base_client: Consume sync responses and store the sync token. 2019-11-24 22:40:52 +01:00
Damir Jelić
10b8d1a682 nio: Add scaffolding for member removals in the base client. 2019-11-14 20:18:31 +01:00
Damir Jelić
8d58938b41 nio-rust: Format the repo. 2019-11-10 18:33:06 +01:00
Damir Jelić
2aca52c9f0 nio: Allow the AsyncClient to be clonable. 2019-11-10 11:44:03 +01:00
Damir Jelić
066d76cc8e nio: Make the callback futures Sync/Send. 2019-10-31 09:17:13 +01:00
Damir Jelić
71d8500453 nio: Reintroduce futures as callbacks. 2019-10-30 23:26:26 +01:00
Damir Jelić
b61dc18060 nio: Allow callbacks to borrow the room, sadly back to non async callbacks. 2019-10-30 19:30:55 +01:00
Damir Jelić
b8eb0489c7 base_client: Handle state events as well. 2019-10-23 23:36:57 +02:00