Commit graph

80 commits

Author SHA1 Message Date
Devin R
183fffe85e Merge branch 'master' of state-store 2020-04-23 21:53:13 -04:00
Devin R
030aa79750 state_store: add method to manually sync state store, AsyncClient::sync now initially syncs with state store 2020-04-23 19:37:27 -04:00
Devin R
fd7d3db32b state_store: move path into JsonStore, store must be "connected" before adding to AsyncClientConfig 2020-04-23 16:40:23 -04:00
Damir Jelić
cb235c47a1 machine: Remove a deadlock when decrypting Olm messages using an existing session. 2020-04-23 11:37:47 +02:00
Damir Jelić
1de791c207 rust-sdk: Update to the latest ruma releases. 2020-04-23 10:52:47 +02:00
Devin R
5491838228 state_store: fix docs, test client with default state store 2020-04-22 17:39:57 -04:00
Devin R
ad7a18d50a state_store: remove associated Store type 2020-04-21 09:47:36 -04:00
Devin R
267453de4d state_store: add Path to StateStore methods, remove associated Error type 2020-04-21 09:36:59 -04:00
Devin R
9fb4bd9d19 state_store: add associated store and error type, custom deserialization for ruma event types 2020-04-18 18:06:30 -04:00
Damir Jelić
6952acddc2 base_client: Remove a unused import. 2020-04-17 10:57:09 +02:00
Devin R
ebe4f03c36 room: implement room_name according to spec, add RoomSummary to RoomName 2020-04-16 21:00:50 -04:00
Devin R
c495a50c52 async_client: make pub API take &self instead of &mut, use read where possible 2020-04-15 08:29:34 -04:00
Devin R
49e962e9c4 event_emitter: use Arc<RwLock<Room for EventEmitter and joined_rooms HashMap 2020-04-15 06:58:25 -04:00
Devin R
cf029b2e4f make EventEmitter shared refs, in AsyncClient::sync lock only in inner most scope 2020-04-14 18:10:10 -04: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ć
0a2b66de9a crytpo: Change the share_group_session method to always create a new session. 2020-04-10 11:45:50 +02:00
Damir Jelić
8583232873 base_client: Expose the methods necessary for message encryption. 2020-04-09 16:27:09 +02:00
Devin R
4dbc0aaad6 clean up, cargo fmt/clippy, add example/TestRunner tests 2020-04-07 08:55:42 -04:00
Devin R
e987a9006b remove User and merge fields into RoomMember 2020-04-05 08:34:02 -04:00
Devin R
25a3533792 don't unwrap UserId from state key 2020-04-05 08:23:59 -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ć
294ca108bb rust-sdk: Move some encryption specific imports under a cfg. 2020-04-03 10:42:03 +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
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
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