This website requires JavaScript.
83f3fc6796
travis: Update our Travis setup for the new workspace setup.
Damir Jelić
2020-04-29 10:56:17 +02:00
4c760fca02
matrix_sdk: Use the internal types crate.
Damir Jelić
2020-04-29 10:40:27 +02:00
c5d833a14b
Merge branch 'state-store'
Damir Jelić
2020-04-29 10:06:02 +02:00
5fef444d61
matrix-sdk: Split out the crypto part of the sdk into a separate crate.
Damir Jelić
2020-04-29 09:48:00 +02:00
cf9ecbd0e8
crypto: Use an atomic int for the key count.
Damir Jelić
2020-04-28 15:47:49 +02:00
350578739c
crypto: Make the user_id/device_id/identity_keys public methods.
Damir Jelić
2020-04-28 15:05:20 +02:00
d220c6cb29
crypto: Test the megolm encyrption.
Damir Jelić
2020-04-28 14:48:49 +02:00
404f3a128d
crypto: Test group session sharing.
Damir Jelić
2020-04-28 10:47:08 +02:00
631ad261ae
state_store: append user name to path when store_room_state is called
Devin R
2020-04-27 16:55:40 -04:00
c91263eb13
Merge branch 'master' into state-store
Devin R
2020-04-27 16:45:57 -04:00
4df6099125
crypto: Test the Olm encryption.
Damir Jelić
2020-04-27 18:27:33 +02:00
b6c9358d14
crypto: Test the creation of an Olm session.
Damir Jelić
2020-04-27 16:31:28 +02:00
96144404ed
crypto: Return a result when searching for missing sessions.
Damir Jelić
2020-04-27 16:26:03 +02:00
8db05ace1e
sync with state store after login to set path otherwise it makes 2x the folders
Devin R
2020-04-27 08:10:43 -04:00
199fb59a76
state_store: use tokio Mutex in state store tests
Devin R
2020-04-27 07:23:59 -04:00
6fcf0a86f9
Merge branch 'master' into state-store
Devin R
2020-04-27 07:20:21 -04:00
6d67cd2ac7
Fix clippy lints
Jonas Platte
2020-04-27 12:12:51 +02:00
5cfac42101
Upgrade js_int to 0.1.5
Jonas Platte
2020-04-27 12:12:45 +02:00
4858ca5f74
Remove unnecessary clone
Jonas Platte
2020-04-27 11:52:49 +02:00
55de913e08
state_store: use as many async fs functions as possible
Devin R
2020-04-26 17:27:06 -04:00
bb2d531525
state_store: clean up and add examples to docs
Devin R
2020-04-26 17:13:55 -04:00
8f57f73b66
command_bot: use JsonStore in example
Devin R
2020-04-25 06:26:35 -04:00
0749e59af8
Merge branch 'master' into state-store
Devin R
2020-04-24 20:02:36 -04:00
23755b10ab
state_store: add user_id localpart to state store path from session
Devin R
2020-04-24 19:57:51 -04:00
4f3eaa6537
Merge branch 'tomb'
Damir Jelić
2020-04-24 12:59:44 +02:00
316295bb77
state_store: add initial_use to let client know its safe to load state
Devin R
2020-04-23 21:57:54 -04:00
183fffe85e
Merge branch 'master' of state-store
Devin R
2020-04-23 21:53:13 -04:00
030aa79750
state_store: add method to manually sync state store, AsyncClient::sync now initially syncs with state store
Devin R
2020-04-23 19:37:27 -04:00
fd7d3db32b
state_store: move path into JsonStore, store must be "connected" before adding to AsyncClientConfig
Devin R
2020-04-23 16:40:23 -04:00
8a8f590788
room: tests for calculate_room
Devin R
2020-04-23 09:55:59 -04:00
6d12ed2046
async_client: Don't request a write lock for crypto based requests.
Damir Jelić
2020-04-23 14:56:59 +02:00
07053cfe26
room/ev_emitter: add tombstone to emitted events
Devin R
2020-04-23 07:05:59 -04:00
ef4d69b0ac
room: fix broken calculate_name, used UInt::max needed min, heroes is always empty
Devin R
2020-04-23 06:53:34 -04:00
305633635d
room: add tombstone event handling
Devin R
2020-04-23 06:45:00 -04:00
986985464a
rust-sdk: Remove some unused imports.
Damir Jelić
2020-04-23 12:43:59 +02:00
a16d3b3d29
crypto: Don't instrument the debug implementation.
Damir Jelić
2020-04-23 11:58:21 +02:00
cb235c47a1
machine: Remove a deadlock when decrypting Olm messages using an existing session.
Damir Jelić
2020-04-23 11:37:47 +02:00
1de791c207
rust-sdk: Update to the latest ruma releases.
Damir Jelić
2020-04-23 10:52:47 +02:00
5491838228
state_store: fix docs, test client with default state store
Devin R
2020-04-22 17:39:57 -04:00
4369d0b854
crypto: Return a EncryptedEventContent when encrypting using Olm instead of a specific one.
Damir Jelić
2020-04-22 15:38:42 +02:00
b56b720c0c
crypto: Return a EncryptedEventContent when encrypting instead of a specific one.
Damir Jelić
2020-04-22 15:22:43 +02:00
27ae8bccb9
crypto: Check the recipient and recipient keys for decrypted events.
Damir Jelić
2020-04-22 15:15:08 +02:00
0eab02a941
crypto: Remove a stale comment.
Damir Jelić
2020-04-22 13:43:45 +02:00
4576e93663
crypto: Add some more debug logs.
Damir Jelić
2020-04-22 12:54:49 +02:00
cb6e43b340
crypto: Allow devices to be deleted from the crypto store.
Damir Jelić
2020-04-22 12:12:47 +02:00
ad7a18d50a
state_store: remove associated Store type
Devin R
2020-04-21 09:47:36 -04:00
267453de4d
state_store: add Path to StateStore methods, remove associated Error type
Devin R
2020-04-21 09:36:59 -04:00
1f173b4919
Merge branch 'master' into state-store
Devin R
2020-04-21 08:29:25 -04:00
877b880ded
crypto: Expose the devices publicly.
Damir Jelić
2020-04-21 11:03:28 +02:00
2f7ec887ba
crypto: Clean up the imports.
Damir Jelić
2020-04-21 10:41:08 +02:00
6b33bedcbe
Cargo.toml: Use the released version of olm-rs.
Damir Jelić
2020-04-21 09:54:41 +02:00
7b84f16bd3
crypto: Test key querying.
Damir Jelić
2020-04-21 09:45:46 +02:00
c057d6c6ad
crypto: Add a method to remove devices from our DeviceStore.
Damir Jelić
2020-04-21 09:45:20 +02:00
00f4dadbbb
crypto: Clean up the key querying logic.
Damir Jelić
2020-04-21 09:44:44 +02:00
7c54ad5c5f
crypto: Allow a device to be marked as deleted.
Damir Jelić
2020-04-21 09:40:50 +02:00
63c0aa8771
crypto: Allow a device to be updated.
Damir Jelić
2020-04-21 09:31:33 +02:00
b572381a8e
crypto: Save the device to the sqlite db.
Damir Jelić
2020-04-21 09:28:26 +02:00
8f89e8335c
state_store: add load_all_rooms, fix clippy warnings
Devin R
2020-04-19 15:25:25 -04:00
9fb4bd9d19
state_store: add associated store and error type, custom deserialization for ruma event types
Devin R
2020-04-18 18:06:30 -04:00
d000996205
Merge branch 'master' of https://github.com/matrix-org/matrix-rust-sdk into state-store
Devin R
2020-04-18 15:22:02 -04:00
001a0de00f
crypto: Test getting all user devices in the sqlite store as well.
Damir Jelić
2020-04-17 15:30:53 +02:00
a632f2e5a2
crypto: Implement the device store for the sql store.
Damir Jelić
2020-04-17 14:14:31 +02:00
6952acddc2
base_client: Remove a unused import.
Damir Jelić
2020-04-17 10:57:09 +02:00
31fb702140
room: confirm spec accuracy
Devin R
2020-04-16 22:07:12 -04:00
ebe4f03c36
room: implement room_name according to spec, add RoomSummary to RoomName
Devin R
2020-04-16 21:00:50 -04:00
bd3b0e7b74
async_client: add login failure test, make sure we are getting correct error
Devin R
2020-04-16 17:03:40 -04:00
07b7cbfe4e
async_client: name associated error type in AsyncClient::send
Devin R
2020-04-16 16:39:44 -04:00
c0e1ff1734
async_client/error: dont swallow response error in AsyncClient::send
Devin R
2020-04-16 15:20:36 -04:00
7889da2b30
state_store: very rough draft of json store
Devin R
2020-04-16 10:02:59 -04:00
d91de818ac
crypto: Don't try to create the sqlite index every time we open the db.
Damir Jelić
2020-04-16 13:57:33 +02:00
9444f1506d
crypto: Test the loading of specific group sessions in the sqlite store.
Damir Jelić
2020-04-16 13:32:04 +02:00
5b212a2fcd
crypto: Keep the tempdir alive in the sqlite store tests.
Damir Jelić
2020-04-16 13:21:57 +02:00
8e3c5889bb
crypto: Make sure to load the all the sender sessions when saving a session.
Damir Jelić
2020-04-16 13:14:14 +02:00
91a2d85cf8
crypto: Improve the debug implementation for the sqlite store.
Damir Jelić
2020-04-16 12:38:58 +02:00
64238b70a0
crytpo: Add test for the memory crypto store.
Damir Jelić
2020-04-16 11:55:16 +02:00
78fdd3d592
crypto: Document the methods in our cryptostore trait.
Damir Jelić
2020-04-16 11:06:51 +02:00
471d27892c
crypto: Make the return values of add methods in the store consistent with a hashset.
Damir Jelić
2020-04-16 11:05:35 +02:00
3a5cc833d1
crypto: Simplify the session saving methods in the cyrptostore.
Damir Jelić
2020-04-16 10:14:23 +02:00
514ced1243
crypto: Don't add the same session twice to the memory session store.
Damir Jelić
2020-04-16 10:09:53 +02:00
5fa6b2fc06
Merge branch 'master' into state-store
Devin R
2020-04-15 17:55:27 -04:00
bedb788432
crypto: Test the keys info for a device.
Damir Jelić
2020-04-15 18:55:15 +02:00
14f25bf66a
crypto: Skip the coverage for debug implementations.
Damir Jelić
2020-04-15 18:22:04 +02:00
aeb93e19e2
crypto: Test our in-memory device store.
Damir Jelić
2020-04-15 17:51:51 +02:00
616a67c1cb
Merge branch 'bot-example'
Damir Jelić
2020-04-15 16:10:18 +02:00
9b52b58fea
command_bot: pass sync_token to sync_forever
Devin R
2020-04-15 09:54:53 -04:00
af73ebdf09
crypto: Add some tests to our in-memory stores.
Damir Jelić
2020-04-15 15:32:58 +02:00
63368a9437
command_bot: remove timestamp
Devin R
2020-04-15 08:44:29 -04:00
c495a50c52
async_client: make pub API take &self instead of &mut, use read where possible
Devin R
2020-04-15 08:29:34 -04:00
202ab9b050
travis: Disable the chache for now as it seems to time out.
Damir Jelić
2020-04-15 14:20:34 +02:00
3f9243a326
command-bot: add comments, use timestamp to filter old messages
Devin R
2020-04-15 07:52:29 -04:00
53a2b8eb7c
crypto: Implement a better debug trait for sessions.
Damir Jelić
2020-04-15 13:46:43 +02:00
49e962e9c4
event_emitter: use Arc<RwLock<Room for EventEmitter and joined_rooms HashMap
Devin R
2020-04-15 06:58:25 -04:00
33a1b8b791
crypto: Add more test for the Olm wrappers.
Damir Jelić
2020-04-15 12:44:00 +02:00
6d1cbcd9ca
remove runtime and clean up example
Devin R
2020-04-14 18:14:14 -04:00
cf029b2e4f
make EventEmitter shared refs, in AsyncClient::sync lock only in inner most scope
Devin R
2020-04-14 18:10:10 -04:00
9c73947e21
design-doc: add more state store info
Devin R
2020-04-14 16:23:55 -04:00
a5ab7d97da
use AsyncClient::sync_forever
Devin R
2020-04-14 15:16:20 -04:00
87c9dbdad7
clone client
Devin R
2020-04-14 14:49:29 -04:00
6f2b5194d1
remove unused imports/vars
Devin R
2020-04-14 08:45:40 -04:00
018ffaf1a8
Merge branch 'master' of https://github.com/matrix-org/matrix-rust-sdk into bot-example
Devin R
2020-04-14 08:41:31 -04:00