Commit graph

92 commits

Author SHA1 Message Date
Damir Jelić
bdd1fb2c19 async_client: Expand the docs for the message sending method. 2020-04-10 11:53:07 +02:00
Damir Jelić
7540e025f1 async_client: Share group sessions before encrypting room messages. 2020-04-10 11:50:18 +02:00
Damir Jelić
86617b42e2 async_client: Remove the transaction id. 2020-04-10 11:41:16 +02:00
Damir Jelić
609df21271 async_client: Add a method to share room keys. 2020-04-09 16:29:03 +02:00
Damir Jelić
61f3da3161 async_client: Add the content-type header to our requests. 2020-04-09 16:28:27 +02:00
Damir Jelić
ee290add45 async_client: Build the URL path a bit more cleanly. 2020-04-09 16:27:43 +02:00
Damir Jelić
01664bc613 async_client: Allow the content and event type to be overridden when sending messages. 2020-04-09 16:26:00 +02:00
Damir Jelić
2c7115da84 async_client: Use a UUID for the transaction id. 2020-04-09 16:19:32 +02:00
Devin R
2137d198fc remove internal assertions in favor of returning clients and rooms 2020-04-07 16:11:35 -04:00
Devin R
4dbc0aaad6 clean up, cargo fmt/clippy, add example/TestRunner tests 2020-04-07 08:55:42 -04:00
Devin R
f635fbe0cf note about async client test runner 2020-04-06 21:01:48 -04:00
Devin R
9ffe7cca10 more work needed for AsyncClient test runner 2020-04-06 20:59:44 -04:00
Devin R
eff322c0c5 crypto compiles, tests pass 2020-04-03 11:00:37 -04:00
Devin R
db62c1fa25 cargo fmt/clippy no more warnings 2020-04-03 09:14:46 -04:00
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ć
74f1a21e42 rust-sdk: Updates for the new ruma crate versions. 2020-04-03 14:09:56 +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
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
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ć
2020700673 crypto: Prepare the scaffolding for key queries and user tracking. 2020-04-01 15:37:00 +02:00
Devin R
df58c60d2e add tests in models files, run coverage 2020-03-31 09:01:48 -04: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
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
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
bb89db30cb remove unused import 2020-03-28 07:52:25 -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
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
Damir Jelić
7595cab178 async_client: Allow setting the initial device display name. 2020-03-27 09:22:29 +01:00
Damir Jelić
485296bc34 async_client: Replace the events with decrypted ones. 2020-03-26 11:23:39 +01:00