Richard van der Hoff
93f6bdecb3
crypto: move decryption verification state tests to a new file
2024-08-07 17:17:51 +01:00
Richard van der Hoff
85b74edf80
crypto: move interactive verification tests to a new file
2024-08-07 17:17:02 +01:00
Richard van der Hoff
6f5442c5ce
crypto: Move some olm-related tests to a separate file
2024-08-07 17:15:45 +01:00
Richard van der Hoff
18e27f3090
crypto: move OlmMachine tests to a separate file
2024-08-07 17:05:47 +01:00
Richard van der Hoff
066fdf99c3
crypto: Move create_session test helper to test_helpers
2024-08-07 17:02:47 +01:00
Richard van der Hoff
2c0d858833
crypto: Pull out OlmMachine test helpers to a new module
2024-08-07 16:10:26 +01:00
Richard van der Hoff
0b5f9aec5e
crypto: promote machine module to directory
2024-08-07 16:08:56 +01:00
Valere
1b05380b60
Crypto: Verified identity changes - Add API at UserIdentity level + test
2024-08-07 15:06:19 +02:00
Valere
072b5d5605
Fix typo in method name
2024-08-07 13:36:20 +02:00
Valere
7e9f4fc5a0
CodeReview: Clarify comment
2024-08-07 13:34:12 +02:00
Valere
2e410e5d94
CodeReview: rename verification_latch to previously verified
2024-08-07 13:34:12 +02:00
Valere
d81b12f389
Review: Fix false postitive typo in b64 string
2024-08-07 13:34:12 +02:00
Valere
58c4075ff5
Review: CI fix identity serialization test
2024-08-07 13:34:12 +02:00
Valere
3c9ae33be1
crypto: Verified identity changes - Migration of existing data
2024-08-07 13:34:12 +02:00
Valere
c171c518c6
crypto: Verified identity changes Fix test with memory store
...
Clone of identities prevent detect changes due shared Arc. Force serializing/deserializing
2024-08-07 13:32:55 +02:00
Valere
20f717ec31
crypto: Verified Identity changes - Update latch on own trust change
2024-08-07 13:32:55 +02:00
Valere
0e01b1d93c
crypto: Verified identity changes - Update latch on identity update
2024-08-07 13:29:58 +02:00
Valere
3d3f93a33d
crypto: Verified identity changes TDD
2024-08-07 13:29:57 +02:00
Valere
b4fe3059c3
crypto: Remember and detect verified identity changes for #1129
2024-08-07 13:29:57 +02:00
Jorge Martín
57963dcf36
ffi: add method for the ClientBuilder to provide a RequestConfig for the client
2024-08-07 11:48:34 +02:00
Jorge Martín
7d9fdc4f05
sdk-ui: add fn Room::event_with_config
...
This method works the same as `Room::event` but you can provide a custom `RequestConfig` to it.
It's especially useful for the pinned events timeline, since we need a max number of retries and a max number of concurrent requests. With this we can remove some unnecessary complexity.
2024-08-07 11:48:15 +02:00
Jorge Martín
1c4f035c99
sdk-ui: reverse (again) the order in the pinned events timeline
...
This way it matches the rest of timelines in the SDK, I reversed it here because I didn't realise most clients just do this reversal of ordering themselves. As they do, they need the same order for this timeline too to be able to reuse their existing logic.
2024-08-06 19:33:00 +02:00
Doug
71e4f60fa5
chore: Update the human readable description for the SentInClear shield.
2024-08-06 17:22:38 +03:00
Damir Jelić
c3848ca016
crypto: Update the changelog
2024-08-06 15:10:13 +02:00
Damir Jelić
a74f6bcc3f
Add the Olm Session cache back in the CryptoStoreWrapper
2024-08-06 15:10:13 +02:00
Damir Jelić
ba7fb7fc36
Convert all SessionStore locks to be async locks
2024-08-06 15:10:13 +02:00
Damir Jelić
96b615ba8e
Remove Olm Session cache from the individual crypto store implementations
2024-08-06 15:10:13 +02:00
Jorge Martín
c83fa3a532
sdk-ui: move conversion between Content::RoomPinnedEvents from ffi to sdk-ui
2024-08-06 10:37:18 +02:00
Jorge Martín
d509d79472
ffi: add RoomPinnedEventsChange and a diffing step to know what happened in the last pinning/unpinning events action
2024-08-06 10:37:18 +02:00
Andy Balaam
ffba842919
crypto: Don't recalculate SenderData if the sender is known but not verified
2024-08-06 09:34:21 +01:00
Jorge Martín
91c10ae213
sdk-ui: add PinnedEventsLoaderError::TimelineReloadFailed.
...
This error will be returned when the room has pinned event ids but the timeline couldn't load any of them.
Also fix tests.
2024-08-05 16:56:49 +02:00
Andy Balaam
efdd6d2693
crypto: Use most-trusted SenderData available when decrypting
2024-08-05 15:46:08 +01:00
Andy Balaam
08bc563e9e
crypto: Methods on SenderData for comparing trust level
2024-08-05 15:46:08 +01:00
Jorge Martín
71b5ab4d07
sdk-ui: fix pinned_events tests
2024-08-05 14:31:03 +02:00
Jorge Martín
4569b25d98
bench: fix benchmark by adding encryption event and clearing the cache in each iteration
2024-08-05 14:31:03 +02:00
Jorge Martín
9f7f1a98fb
ffi: base the ffi::Room::clear_pinned_events method in sdk::Room::clear_pinned_events
2024-08-05 14:31:03 +02:00
Jorge Martín
4432b332fa
sdk: add Room::clear_pinned_events
2024-08-05 14:31:03 +02:00
Jorge Martín
d846563df3
sdk-ui: use reversed chronological order for TimelineFocus::PinnedEvents
2024-08-05 14:31:03 +02:00
Doug
b453a0204e
sdk-ui: Make the SentInClear shield red.
2024-08-05 10:48:06 +02:00
Doug
4c220ed030
shields: Put the Code inside the Colour instead of the Colour inside the Code.
2024-08-05 10:48:06 +02:00
Doug
037badf7a4
chore: Strongly typed ShieldStates.
2024-08-05 10:48:06 +02:00
Jorge Martín
fba61751d5
sdk-ui: extract MAX_CONCURRENT_REQUESTS const for PinnedEventsLoader
2024-08-02 18:54:28 +02:00
Jorge Martín
2bd4db8a23
sdk-ui: use PinnedEventsLoader::update_if_needed when new timeline events are received. Using PinnedEventsLoader::load_events here was a mistake.
2024-08-02 18:54:28 +02:00
Jorge Martín
4de1375a76
ffi: add bindings for Room::clear_pinned_events_cache
2024-08-02 18:54:28 +02:00
Jorge Martín
1353406b80
sdk-ui: add Room::clear_pinned_events_cache to remove any cached pinned events from a room
2024-08-02 18:54:28 +02:00
Jorge Martín
e1bffaee21
sdk: add PinnedEventCache::remove_bulk to be able to remove events from the cache
2024-08-02 18:54:28 +02:00
Jorge Martín
0496ef4313
sdk-ui: add test checking the pinned event cache is kept for different room instances
2024-08-02 18:54:28 +02:00
Jorge Martín
674605aeab
sdk-ui: use the moved PinnedEventCache instead of the one encapsulated in PinnedEventsLoader
2024-08-02 18:54:28 +02:00
Jorge Martín
f1b20a8ea5
sdk: add PinnedEventCache to Client.
...
This ensures the cache keeps the events even when the associated `Room` is dropped, which is what we want when using it to cache the pinned events for rooms in the client.
Add `fn Client::pinned_event_cached()` to get a reference to it.
2024-08-02 18:54:28 +02:00
Jorge Martín
d1fe27c969
sdk: move PinnedEventCache from sdk-ui
2024-08-02 18:54:28 +02:00