Benjamin Bouvier
e4ec8f03eb
crypto: remove useless fallibility of StoreTransaction::new
2023-10-30 16:08:06 +01:00
Benjamin Bouvier
597cff5d9d
crypto: make it impossible to have two Accounts alive at the same time
2023-10-30 16:08:06 +01:00
Daniel Abramov
7dde4ec1e8
widget: Add reading of message-like events
2023-10-30 14:41:21 +01:00
Daniel Abramov
0f420a61dc
widget: Add tests for non-allowed matrix requests
2023-10-30 14:41:21 +01:00
Benjamin Bouvier
9d5e7c59f3
Fix tracing timer API so it works with updated tracing
2023-10-30 14:34:56 +01:00
Benjamin Bouvier
1f534821f6
Bump tracing
2023-10-30 14:34:56 +01:00
Jonas Platte
245c102169
examples: Add required clap feature for example-timeline
2023-10-30 12:26:34 +01:00
Benjamin Bouvier
1da785e6cb
fix(crypto): upload device keys *before* sending the keys signature during XSigning bootstrapping
...
There was a bug previously, that the cross-signing bootstrapping could include a signature for a device key that hadn't been uploaded yet.
This fixes it by returning a third (!) request in `bootstrap_cross_signing`, that must be sent as the second in order, and will upload
keys, if required.
Also tweaks documentation. Fixes #2749 .
2023-10-27 16:22:24 +02:00
Benjamin Bouvier
f917b32407
crypto: remove useless async in a few functions
2023-10-27 16:22:24 +02:00
Benjamin Bouvier
631ab26d8b
Rename some variables in crypto related to cross-signing bootstrapping
2023-10-27 16:22:24 +02:00
Benjamin Bouvier
0f442b4c83
crypto: don't use a transaction when it can be avoided
...
The transaction is useless since the account is used in read-only mode here.
2023-10-27 16:22:24 +02:00
Richard van der Hoff
0c333ed335
Refactor olm message decryption logic ( #2751 )
...
The driver for this is really to make sure that we log a warning whenever there is an error, but tbh IMHO the result is somewhat easier to understand.
2023-10-27 12:57:18 +01:00
Jonas Platte
28c4f2dc14
base: Inline MemoryStore inherent methods into StateStore impl block
...
They were not used anywhere else and had no reason to exist as inherent
methods.
2023-10-27 13:53:26 +02:00
Jonas Platte
686fc99ebd
sdk: Replace dashmap usage by std types
2023-10-27 13:53:26 +02:00
Jonas Platte
113bdbd835
base: Replace dashmap usage by std types
2023-10-27 13:53:26 +02:00
Benjamin Bouvier
1d90dd554c
Test some verification getters in the heavyweight verification integration test
2023-10-27 13:03:20 +02:00
Jonas Platte
05a1021724
Use assert_let! instead of assert_matches! with bindings
2023-10-26 17:29:29 +02:00
Jonas Platte
23571d0257
ui: Replace qualified path with use
2023-10-26 17:29:29 +02:00
Benjamin Bouvier
c533297efd
test: move the mocked endpoints into their own functions
...
Code-motion only.
2023-10-26 17:10:57 +02:00
Benjamin Bouvier
870faa48d1
tests: add mutual verification test
2023-10-26 15:12:34 +02:00
Jonas Platte
a515bc8f03
ffi: Remove tokio::Runtime::block_on usage in async fn
2023-10-25 16:16:58 +02:00
Jonas Platte
bc81cc317f
ui: Log event type when an event fails to deserialize
2023-10-25 15:15:09 +02:00
Stefan Ceriu
570ef38de3
Remove unused anyhow import
2023-10-24 17:00:08 +02:00
Benjamin Bouvier
468337f026
Update bindings/matrix-sdk-ffi/src/session_verification.rs
2023-10-24 17:00:08 +02:00
Stefan Ceriu
040d095a04
Change the is_verified flag source to device.is_cross_signed_by_owner as theoretically the previous implementation was wrong
2023-10-24 17:00:08 +02:00
Stefan Ceriu
fa90269e7e
Fixes vector-im/element-x-ios/issues/1868 - Incorrect is_verified flag after successfully running verification flow
...
- the inner user_identity isn't automatically updated when the flow finishes, needs to be fetched again from encryption
2023-10-24 17:00:08 +02:00
Benjamin Bouvier
93edf7a064
tests: add test for cross-signing bootstrapping and unchecked self-verification
2023-10-24 15:20:15 +02:00
Jonas Platte
79065edabf
ui: Test next_event_limit for different pagination strategies
2023-10-24 14:04:07 +02:00
Jonas Platte
cd1e3928ad
ui: Exclude another Debug impl from coverage reporting
2023-10-24 14:04:07 +02:00
Jonas Platte
61335af40d
widget: Add a test for receiving live events
2023-10-24 12:58:39 +02:00
Jonas Platte
a0128a94ef
base: Log when the same sync response is received twice
2023-10-24 12:58:39 +02:00
Damir Jelić
95ced18edd
Implement Default for the CrossSigningKeyExport
...
Co-authored-by: Jonas Platte <jplatte@matrix.org >
2023-10-24 11:23:45 +02:00
Damir Jelić
cd310d52d4
Add a convenience method to check if we have all cross-signing keys
2023-10-24 11:23:45 +02:00
Damir Jelić
dc92ce8b40
Add a convenience method to get your own device out of the store
2023-10-24 11:23:45 +02:00
Daniel Abramov
b0aa0ec5de
widget: Add unit test to cover possible "deadlock"
2023-10-23 22:31:56 +02:00
Daniel Abramov
d81d2bf01a
widget: Let machine's process() return Action
2023-10-23 22:31:56 +02:00
Richard van der Hoff
7d2d1a53bf
Exclude Store from tracing
...
Debug output for the `Store` is extremely verbose, so we don't want to log it
every time we touch this function.
2023-10-23 19:50:25 +02:00
Benjamin Bouvier
0107bcfd0d
cross-signing bootstrapping: test that failure in bootstrapping doesn't block login
2023-10-23 19:38:30 +02:00
Benjamin Bouvier
e1feefcbb0
chore: make clippy happy
2023-10-23 19:38:30 +02:00
Benjamin Bouvier
456472af6c
tests: for cross-signing bootstrapping
2023-10-23 19:38:30 +02:00
Benjamin Bouvier
536d1ab527
feat: allow cross-signing bootstrapping in OIDC too
2023-10-23 19:38:30 +02:00
Benjamin Bouvier
0754c75436
client builder: add a method to set encryption settings
2023-10-23 19:38:30 +02:00
Benjamin Bouvier
1c0c9b8ab3
encryption: prefix a few test case names with test_
2023-10-23 19:38:30 +02:00
Benjamin Bouvier
11f4b54394
encryption: add documentation for the new methods
2023-10-23 19:38:30 +02:00
Damir Jelić
80bbd77f3b
feat: allow automatically enabling cross-signing on login
2023-10-23 19:38:30 +02:00
Jonas Platte
6f992d1ad8
ui: Add a test for updating member profiles
2023-10-23 19:34:23 +02:00
Jonas Platte
1ce67cc9e6
test: Use DEFAULT_TEST_ROOM_ID in more places
2023-10-23 19:34:23 +02:00
Jonas Platte
254efed150
test: Rename DEFAULT_SYNC_ROOM_ID to DEFAULT_TEST_ROOM_ID
...
… and move to matrix-sdk-test's crate root.
2023-10-23 19:34:23 +02:00
Valere
f43eb94a8c
Better documentation for share_room_key ( #2741 )
...
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
2023-10-23 18:37:56 +02:00
Damir Jelić
9ccc36ccc8
Add more tests for the secret storage support in the crypto crate
2023-10-23 18:35:54 +02:00