Commit Graph

7569 Commits

Author SHA1 Message Date
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
Benjamin Bouvier
17dead5641 read receipts: avoid allocating an indexmap consumed as an iterator thereafter 2023-10-23 17:51:10 +02:00
Benjamin Bouvier
3ea9b8ed53 Apply suggestions from code review 2023-10-23 17:26:11 +02:00
Kévin Commaille
a07062a990 Use std::cmp::Ordering
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-10-23 17:26:11 +02:00
Kévin Commaille
7b2a502e7d ui: Add tests for initial user read receipt
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-10-23 17:26:11 +02:00
Kévin Commaille
177f15b2e5 ui: Allow to get latest user read receipt for any room data provider
Allows to test the method with unit test

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-10-23 17:26:11 +02:00
Kévin Commaille
3bd10a05c1 Add a test for receipt comparison
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-10-23 17:26:11 +02:00
Kévin Commaille
ff83f5abcb ui: Handle read receipts in the main thread
Improves the compatibility with clients using threads

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-10-23 17:26:11 +02:00
Kévin Commaille
ddb4bf13b1 ui: Add user_receipt method on RoomDataProvider
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2023-10-23 17:26:11 +02:00
Stefan Ceriu
0006f85103 Make reldbg inherit dbg and contain debug symbols 2023-10-23 15:31:22 +02:00
Timo
4933a50496 Add active calls to RoomInfo 2023-10-23 15:05:12 +02:00
Benjamin Bouvier
a052f26748 Bump synapse image version in integration testing 2023-10-23 14:56:11 +02:00
Benjamin Bouvier
b9b4e4e1e0 test: bump the sliding-sync image versions 2023-10-23 13:55:42 +02:00
Benjamin Bouvier
55257f2b8d test: remove uninteresting smoke test for sliding sync in integration suite 2023-10-23 13:55:42 +02:00
Benjamin Bouvier
6368c699c2 test: Merge the two integration test suites into a single one 2023-10-23 13:55:42 +02:00
Damir Jelić
7440ce0a0c Use the GlobalAccountDataEventType instead of a string for the event type 2023-10-23 10:24:14 +02:00
Damir Jelić
fda24d312b Re-export the MacError type of the secret storage module 2023-10-23 10:24:14 +02:00
Richard van der Hoff
21a4e7d1b2 Clean up to-device message logging (#2747) 2023-10-20 17:54:27 +00:00
Richard van der Hoff
ed6f658405 Fix spurious "unknown secret request" warning (#2755) 2023-10-20 18:37:17 +01:00
Daniel Abramov
4ea8ecaac8 widget: Add missing unit tests for error cases 2023-10-20 17:52:10 +02:00
Benjamin Bouvier
71627a29a6 style: use not().then() in one place 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
2f90f9d55d account: make it more obvious what Account::clone_internal is, so it can't be misused 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
eb5bf4d51f store cache: copy the account back into the cache if there were pending changes to it 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
fc35d86a69 test: use unwrap() instead of Result in a test 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
08450da5e1 crypto: move Store::mark_tracked_users_as_up_to_date to the StoreCache 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
9ecc6ddd1e crypto: move Store::tracked_users to StoreCache 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
71229dd98b crypto: remove useless parameter in receive_device_changes 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
a2702e6d98 crypto: move Store::update_tracked_users to the StoreCache 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
0feccc7fee crypto: remove useless call to self.cache in Store::users_for_key_query
The store cache can be filled lazily when it's actually needed. It's not needed in this
function here, and may be needed in another function the caller of this function may call
later. No need to preemptively fill the cache here.
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
f580966408 crypto: move Store::mark_user_as_changed to the StoreCache too 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
537ac8a269 crypto: fix test failure 2023-10-20 17:04:40 +02:00
Benjamin Bouvier
65f4cc151c crypto: move Store::mark_tracked_users_as_changed to StoreCache 2023-10-20 17:04:40 +02:00