Commit Graph

1546 Commits (83926e154b14dd38f4724cfa3de4e7536f34549f)

Author SHA1 Message Date
Devin R 1a7856e9fe fix room_send example, cargo fmt/clippy 2020-04-13 14:46:54 -04:00
Devin R fb10e9bf87 add optional txn_id to room_send, add docs to room_messages 2020-04-13 14:08:51 -04:00
Devin R a0973dec85 Merge branch 'master' of https://github.com/matrix-org/matrix-rust-sdk into state-store 2020-04-13 10:21:44 -04:00
Devin R 0d8702b292 rename get_message_events to room_messages 2020-04-12 08:21:23 -04:00
Devin R be34b72a0b state_store: WIP trait layout and default json impl 2020-04-12 08:14:13 -04:00
Devin R 5180f99a0e cargo fmt/update fixed olm 2020-04-11 15:58:34 -04:00
Caleb Bassi 5f6cbbb193
fix matrix badge link 2020-04-11 12:01:29 -07:00
Devin R 7aeeeea432 request_builder: test GetMessageBuilder 2020-04-11 08:46:45 -04:00
Devin R 6358db94c7 more docs 2020-04-10 21:44:16 -04:00
Devin R c69d54e2d4 async_client: impl kick, join, leave, invite, create for 2020-04-10 16:32:28 -04:00
Damir Jelić cb8f1c1a5b crypto: Zeroize the GroupSessionKey struct. 2020-04-10 17:02:51 +02:00
Damir Jelić 8210c2377d crypto: Take the session key out of the RoomKey event. 2020-04-10 17:02:30 +02:00
Damir Jelić 01656690bc crypto: Save the account after an inbound session was created. 2020-04-10 16:18:55 +02:00
Damir Jelić 7577ddfc00 crypto: Remove one-time keys after a inbound session was created successfully. 2020-04-10 16:18:29 +02:00
Damir Jelić c282d9fabc machine: Uncomment account saving after keys were published. 2020-04-10 16:17:31 +02:00
Damir Jelić a4d41378d4 crypto: Move the inbound group session lock into the session struct. 2020-04-10 16:08:47 +02:00
Damir Jelić b8d6a4c49a crypto: Move the account mutex into the account struct. 2020-04-10 15:28:43 +02:00
Damir Jelić 7c20c79f32 crypto: Add test for the session creation. 2020-04-10 14:44:50 +02:00
Damir Jelić af7309033c crypto: Rename the session creation method. 2020-04-10 14:44:25 +02:00
Damir Jelić d04c7e0190 crypto: Add a GroupSessionKey type. 2020-04-10 14:00:03 +02:00
Damir Jelić 9d52037b40 crypto: Add docs to our olm-rs wrappers. 2020-04-10 13:47:38 +02:00
Damir Jelić c215dfa55d crypto: Don't manually implement Send, those are now in olm-rs. 2020-04-10 11:59:51 +02:00
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ć a389905734 base_client: Expose the method to check if a group session needs to be shared. 2020-04-10 11:47:01 +02:00
Damir Jelić b43407b165 crypto: Add a method to check if a group session needs to be shared. 2020-04-10 11:46:31 +02:00
Damir Jelić 0a2b66de9a crytpo: Change the share_group_session method to always create a new session. 2020-04-10 11:45:50 +02:00
Damir Jelić 1504b3a02a crypto: Change the encrypt method to not require to take mut self. 2020-04-10 11:44:09 +02:00
Damir Jelić 1e3f93ca22 crypto: Remove an unused enumerate. 2020-04-10 11:43:03 +02:00
Damir Jelić 86617b42e2 async_client: Remove the transaction id. 2020-04-10 11:41:16 +02:00
Damir Jelić c5f7af9118 crypto: Recreate group sessions if they are expired. 2020-04-10 09:58:13 +02:00
Damir Jelić 0215e89ff8 crypto: Use an UUID for the to-device requests for session sharing. 2020-04-10 09:57:10 +02:00
Damir Jelić 58585b9828 Cargo.toml: Depend on the git hosted ruma crates. 2020-04-09 17:04:34 +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ć 8583232873 base_client: Expose the methods necessary for message encryption. 2020-04-09 16:27:09 +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ć dc2983d9a2 crypto: Add initial support to encrypt messages. 2020-04-09 16:24:40 +02:00
Damir Jelić a5f43db859 crypto: Add some more methods to the group session wrapper. 2020-04-09 16:23:24 +02:00
Damir Jelić b4de95185d device: Change to the higher level ruma types for device ids. 2020-04-09 16:22:25 +02:00
Damir Jelić 2c7115da84 async_client: Use a UUID for the transaction id. 2020-04-09 16:19:32 +02:00
Damir Jelić f19e251de1 crypto: Add some initial code for megolm session sharing. 2020-04-08 15:06:57 +02:00
Damir Jelić 816295cd48 crytpo: Add a wrapper for outbound megolm sessions. 2020-04-08 15:05:57 +02:00
Devin R 834d8d7d37 remove serde from dev-deps, add crypto info to design 2020-04-08 07:13:43 -04:00
Devin R 7e6c90ecb9 design doc to help me define the layers? 2020-04-07 17:34:21 -04: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