Richard van der Hoff
6ab11a0323
Merge pull request #5219 from matrix-org/rav/megolm_sender_verification_main
...
crypto: new `VerificationLevel::MismatchedSender`
2025-06-12 12:44:47 +01:00
Stefan Ceriu
76626db613
chore(ffi): expose ThreadSummary num_replies on the ffi layer.
2025-06-12 14:26:40 +03:00
Benjamin Bouvier
bcea1d32e6
refactor(multiverse): use a log line instead of a status message for showing intent to open a thread view
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
346f11319c
refactor(multiverse): move the opening of a threaded timeline to its own function
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
937b223627
chore(multiverse): add missing help lines for the new functionalities
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
000d8514f6
refactor(multiverse): store the selected room in the TimelineKind::Room field
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
72692b7b33
feat(multiverse): add basic support for threads
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
0f84d482b9
refactor(multiverse): inline send_message_impl into its own caller
...
Also don't clear the input if the timeline wasn't found yet.
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
c609150a3e
refactor(multiverse): introduce RoomView::get_selected_timeline()
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
2f46a6c8a0
refactor(multiverse): use Client to get a Room object by room id
2025-06-12 13:25:08 +02:00
Benjamin Bouvier
7bdddc9d35
refactor(multiverse): misc tiny changes
...
Notably, avoid holding a lock if it's not going to be used later.
2025-06-12 13:25:08 +02:00
Stefan Ceriu
5113f114a7
fix(ui): forward live events to threaded timelines, the same as live ones
...
- drop `is_live` and `is_pinned_events` and use the timeline focus directly at the decision point.
2025-06-12 12:57:10 +03:00
Stefan Ceriu
9d96d6ead2
feat(ffi): add support for sending locations as replies or within threads
2025-06-12 12:57:10 +03:00
Daniel Salinas
c340a7187a
feat(wasm): Fix cargo runtime on Wasm platforms ( #5220 )
...
When file was
[moved](2a140770a0 )
it looks like an update was missed, since wasm is not in the CI yet.
Signed-off-by: Daniel Salinas
2025-06-11 22:07:54 +02:00
Richard van der Hoff
0aece695dc
crypto: update changelog
2025-06-11 17:15:44 +01:00
Richard van der Hoff
b2210292bf
crypto: Add a test for spoofed sender, with TrustRequirement::CrossSigned
2025-06-11 17:06:44 +01:00
Richard van der Hoff
f0ab6cb1a4
crypto: use a dedicated VerificationLevel if we know the sender of an event is spoofed
2025-06-11 17:06:44 +01:00
Richard van der Hoff
c2eeca3f33
crypto: add some instrumentation to get_room_event_encryption_info
...
It helps to know which event we're getting the encryption info for.
2025-06-11 16:51:51 +01:00
Benjamin Bouvier
cc974dd3c9
refactor(event cache): use Event instead of TimelineEvent more evenly
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
8b2a8e7265
refactor(event cache): move the timeline-event-diffs sending back into the callers
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
7cad237dc6
refactor(event cache): reduce indent in maybe_apply_new_redaction
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
72a3972303
refactor(event cache): simplify mutating the RoomEvents in RoomEventCacheStore
...
No more generic function parameter! Having a separate function for
post-processing is simple enough.
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
2e590e2f67
refactor(event cache): only mark that we've waited for an initial previous-batch token after a sync
...
It doesn't make sense to do it after a back-pagination, since a
back-pagination does require a previous-batch token in the first place,
meaning that if we did paginate, then we did wait for a previous-batch
token beforehand.
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
224e437a78
refactor(event cache): simplify handling of previous-batch token in handle_backpagination too
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
8a9cae4af3
refactor(event cache): have even fewer methods return timelinediff updates
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
22a15f1342
refactor(event cache): remove code comment that doesn't make sense anymore
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
3ab4584dfe
refactor(event cache): have fewer methods return timelinediff updates
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
a3238cdadf
refactor(event cache): remove indent in RoomEventCacheState::handle_sync
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
a884b2c696
refactor(event cache): move handling of a backpagination in RoomEventCacheState
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
ec0d7b4311
refactor(event cache): move handling of a sync in RoomEventCacheState
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
e8c2d27c9e
refactor(event cache): slightly tweak logic around prev-batch token suppression
2025-06-11 17:04:15 +02:00
Benjamin Bouvier
bff600a937
refactor(event cache): make deduplication entirely stateless
...
Having a small data structure to hold the room id and store isn't that
useful, after all.
2025-06-11 17:04:15 +02:00
Michael Goldenberg
404a982503
refactor(indexeddb): support querying by next chunk index, even when next chunk does not exist
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
e904a98735
refactor(indexeddb): re-type IndexedEventPositionIndex as usize as IndexedDB supports numeric keys
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
b55e79fdac
refactor(indexeddb): re-type IndexedChunkId as u64 as IndexedDB supports numeric keys
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
717116cc05
refactor(indexeddb): re-type IndexedRoomId and IndexedEventId as String for compatibility with SafeEncode
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
0ad4df2031
refactor(indexeddb): remove extraneous room id field from event in event cache store
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
891e9813b1
refactor(indexeddb): re-type next/previous chunk fields as chunk identifiers rather than entire chunks
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
19b21fdd49
fix(indexeddb): enforce type rather than variant distinction between in-band/out-of-band events
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
307fa355ad
refactor(indexeddb): add internal types that support encryption and indexing in event cache store
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
351053fef5
refactor(indexeddb): add internal types that support encryption and indexing in event cache store
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
8c735c602a
refactor(indexeddb): add internal types for event cache store
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
7ffc390cea
feat(indexeddb): put event cache store module behind feature flag
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Michael Goldenberg
05b67df6e2
feat(indexeddb): add initial database migrations for event cache store
...
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net >
2025-06-11 16:09:33 +02:00
Denis Kasak
f3f3d968b5
Merge pull request #5214 from matrix-org/update-changelog-main
...
Update changelog main
2025-06-11 12:18:22 +02:00
Denis Kasak
bde1d4a353
Merge branch 'release-0.11'
2025-06-11 12:01:48 +02:00
Denis Kasak
4f6ddcd072
Merge pull request #5213 from matrix-org/update-changelog-sec-ref
...
chore: Add CVE-2025-48937 reference to the CHANGELOG
2025-06-11 11:36:16 +02:00
Denis Kasak
b99188dd59
chore: Add CVE-2025-48937 reference to the CHANGELOG
...
Signed-off-by: Denis Kasak <dkasak@termina.org.uk >
2025-06-11 11:27:36 +02:00
homersimpsons
e2fee14ced
📝 Fix changelog links
...
Signed-off-by: homersimpsons <guillaume.alabre@gmail.com >
2025-06-11 10:32:33 +02:00
Benjamin Bouvier
9fca8f0007
refactor(timeline): include the bundled item owner in edit aggregation metadata
2025-06-10 15:52:00 +02:00