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
Benjamin Bouvier
7c51950167
crypto: move Store::ensure_sync_tracked_users to the StoreCache
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
3030bcbf1e
crypto: introduce a RwLock on the StoreCache
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
3d7a56e468
crypto: remove inner mutable shared state from Account
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
8bfcd20801
crypto: make Account not clonable and the Account in the cache optional
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
3570519c0c
crypto: make StoreCache::account fallible and async
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
a82964ac75
crypto: get rid of test-only OlmMachine::account
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
be96ddb24a
crypto: introduce StoreCache::account() function
2023-10-20 17:04:40 +02:00
Jonas Platte
6d0ed67679
widget: Rename remaining "permissions" to capabilities
...
… a few uppercase Permissions were missed last time.
2023-10-20 13:28:53 +02:00
Jonas Platte
3c74809374
widget: Attach room ID to events from sync
2023-10-20 13:00:43 +02:00
Jonas Platte
fc6549213b
widget: Filter incoming matrix events
2023-10-20 13:00:43 +02:00
Jonas Platte
f937e7d14a
widget: Fix ResponseData type for notify requests
2023-10-20 13:00:43 +02:00
Daniel Abramov
9d8e5a0d08
widget: Add subscribe / unsubscribe event handling
2023-10-20 13:00:43 +02:00
Daniel Abramov
4900089669
widget: Remove obsolete allow(dead_code)
2023-10-20 13:00:43 +02:00
Jonas Platte
a4fd054705
widget: Properly handle matrix driver request errors
...
Co-authored-by: Daniel Abramov <daniel.abramov@element.io >
2023-10-20 12:05:03 +02:00
Daniel Abramov
685c51b3af
widget: Add OpenID request handling
2023-10-20 12:05:03 +02:00
Jonas Platte
70b8ac425f
widget: Fix name, response fields of capabilities request
2023-10-20 09:56:36 +02:00
Jonas Platte
7582b4fda9
widget: Fix field name in supported-versions response
2023-10-20 09:56:36 +02:00
Jonas Platte
a2d05ed002
widget: Remove unnecessary type wrapping
...
… and move some types around.
2023-10-20 09:56:36 +02:00
Jonas Platte
489d699cc5
widget: Remove unused Serialize implementation
2023-10-20 09:56:36 +02:00
Jonas Platte
561db87b64
widget: Add integration tests for sending events
2023-10-19 15:25:53 +02:00