Damir Jelić
704d8bc0ed
crypto: The algorithm specific contents don't take an algorithm anymore.
2020-05-04 14:11:06 +02:00
Damir Jelić
60cc939fdd
matrix-sdk: Update our deps and re-implement PartialEq for the ClientState.
2020-05-04 14:06:34 +02:00
Damir Jelić
addb455d16
crypto: Add all the missing docs and deny missing docs from now on.
2020-04-30 17:10:12 +02:00
Damir Jelić
5dc0842f49
crypto: Implmement device deletion for the sqlite store.
2020-04-30 14:33:41 +02:00
Damir Jelić
e109e01a28
crypto: More lint fixes.
2020-04-30 14:29:58 +02:00
Damir Jelić
3bcce962e3
matirx_sdk: Fix a bunch of clippy warnings.
2020-04-30 14:07:49 +02:00
Damir Jelić
fc0d4a7d35
crypto: Rework our errors making them more specific.
2020-04-30 13:16:10 +02:00
Devin R
2c4b6919ef
message: only push message when timestamp is larger than last msg in queue
2020-04-30 06:57:25 -04:00
Devin R
9788233771
room/message: make docs more clear, deserialize to MessageEvent over RoomEvent
2020-04-30 06:28:36 -04:00
Damir Jelić
5de32c025f
crypto: Allow session to be saved in a batched way.
2020-04-30 12:08:38 +02:00
Devin R
d4b2fd0e1a
Merge branch 'master' into messages
2020-04-30 06:02:31 -04:00
Damir Jelić
e33fd098bc
crypto: Make the save device method of the store accept a slice of devices.
2020-04-30 11:51:20 +02:00
Damir Jelić
157dc86b61
matrix_sdk: Style fix for a docstring.
2020-04-30 10:14:18 +02:00
Devin R
9386b500a8
message: keep MessageQueue sorted by origin_server_ts
2020-04-29 19:28:58 -04:00
Devin R
178c6c06f8
Merge branch 'state-reviews' into messages
2020-04-29 15:49:36 -04:00
Devin R
376381b1a7
state_store: remove device_id and user_id from ClientState
2020-04-29 15:42:20 -04:00
Devin R
955f6248cf
async_client: fix clippy warning
2020-04-29 08:10:53 -04:00
Devin R
5b17e57c4e
room/messages: add message de/ser to Room
2020-04-29 07:58:31 -04:00
Devin R
ef560fd545
state_store: load_client takes a sessions obj, docs, copyright, move state store into base client
2020-04-29 07:00:14 -04:00
Damir Jelić
83f3fc6796
travis: Update our Travis setup for the new workspace setup.
2020-04-29 10:56:17 +02:00
Damir Jelić
4c760fca02
matrix_sdk: Use the internal types crate.
2020-04-29 10:40:27 +02:00
Damir Jelić
c5d833a14b
Merge branch 'state-store'
2020-04-29 10:06:02 +02:00
Damir Jelić
5fef444d61
matrix-sdk: Split out the crypto part of the sdk into a separate crate.
2020-04-29 09:48:00 +02:00
Damir Jelić
cf9ecbd0e8
crypto: Use an atomic int for the key count.
2020-04-28 15:47:49 +02:00
Damir Jelić
350578739c
crypto: Make the user_id/device_id/identity_keys public methods.
2020-04-28 15:06:32 +02:00
Damir Jelić
d220c6cb29
crypto: Test the megolm encyrption.
2020-04-28 14:48:49 +02:00
Damir Jelić
404f3a128d
crypto: Test group session sharing.
2020-04-28 10:47:08 +02:00
Devin R
631ad261ae
state_store: append user name to path when `store_room_state` is called
2020-04-27 16:55:40 -04:00
Devin R
c91263eb13
Merge branch 'master' into state-store
2020-04-27 16:45:57 -04:00
Damir Jelić
4df6099125
crypto: Test the Olm encryption.
2020-04-27 18:27:33 +02:00
Damir Jelić
b6c9358d14
crypto: Test the creation of an Olm session.
2020-04-27 16:31:28 +02:00
Damir Jelić
96144404ed
crypto: Return a result when searching for missing sessions.
2020-04-27 16:26:03 +02:00
Devin R
8db05ace1e
sync with state store after login to set path otherwise it makes 2x the folders
2020-04-27 08:10:43 -04:00
Devin R
199fb59a76
state_store: use tokio Mutex in state store tests
2020-04-27 07:23:59 -04:00
Devin R
6fcf0a86f9
Merge branch 'master' into state-store
2020-04-27 07:20:21 -04:00
Jonas Platte
6d67cd2ac7
Fix clippy lints
2020-04-27 12:12:51 +02:00
Jonas Platte
5cfac42101
Upgrade js_int to 0.1.5
2020-04-27 12:12:45 +02:00
Jonas Platte
4858ca5f74
Remove unnecessary clone
2020-04-27 11:52:49 +02:00
Devin R
55de913e08
state_store: use as many async fs functions as possible
2020-04-26 17:27:06 -04:00
Devin R
bb2d531525
state_store: clean up and add examples to docs
2020-04-26 17:13:55 -04:00
Devin R
8f57f73b66
command_bot: use JsonStore in example
2020-04-25 06:26:35 -04:00
Devin R
0749e59af8
Merge branch 'master' into state-store
2020-04-24 20:02:36 -04:00
Devin R
23755b10ab
state_store: add user_id localpart to state store path from session
2020-04-24 19:57:51 -04:00
Damir Jelić
4f3eaa6537
Merge branch 'tomb'
2020-04-24 12:59:44 +02:00
Devin R
316295bb77
state_store: add initial_use to let client know its safe to load state
2020-04-23 22:09:42 -04:00
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
Devin R
8a8f590788
room: tests for calculate_room
2020-04-23 09:55:59 -04:00
Damir Jelić
6d12ed2046
async_client: Don't request a write lock for crypto based requests.
...
The crypto state machine is in the base client behind a separate lock so
there's no need to require write access.
This removes a deadlock if we're trying to send an encrypted message
from a event emitter callback, since emitting an event fetches a read
lock as well.
2020-04-23 14:56:59 +02:00