Damir Jelić
dda080c497
sqlite: Bump the version
2024-07-19 10:18:27 +02:00
Damir Jelić
a18f90bfaa
chore: Fix some invalid test data
2024-07-18 17:10:00 +02:00
Damir Jelić
60ed367fd9
chore: Format the changelog a bit better
2024-07-18 17:10:00 +02:00
Damir Jelić
1157067dba
chore: Prepare the matrix-sdk-crypto release 0.7.2
2024-07-18 17:10:00 +02:00
Damir Jelić
8efdba6136
crypto: Fix UserIdentity::is_verified to take into account our own identity
...
The `UserIdentity::is_verified()` method in the matrix-sdk-crypto crate
before version 0.7.2 doesn't take into account the verification status
of the user's own identity while performing the check and may as a result
return a value contrary to what is implied by its name and documentation.
This patch fixes this and adds a regression test.
The method itself is not used internally and as such has not a larger
impact.
Co-authored-by: Denis Kasak <dkasak@termina.org.uk >
Signed-off-by: Damir Jelić <poljar@termina.org.uk >
2024-07-18 17:10:00 +02:00
Damir Jelić
f25916cb5c
chore: Remove an unused import
2024-05-13 12:48:30 +02:00
Damir Jelić
637e830e85
chore: Fix the formatting
2024-05-13 12:48:30 +02:00
Damir Jelić
04362cdc36
chore(crypto): Bump the version of the crypto crate to 0.7.1
2024-05-13 12:31:26 +02:00
Valere
fa10bbb5dd
fix(crypto): Avoid incorrect usage of private backup key
...
This fixes instances of key backup corruption and prevents inadvertently
logging the private backup key to the logs.
2024-05-13 12:31:26 +02:00
Benjamin Bouvier
4164effbf9
Bump matrix-sdk to 0.7.1
2024-01-22 11:27:03 +01:00
Sami J. Mäkinen
917e8c291e
Upgrade aquamarine dependency
2024-01-22 11:25:56 +01:00
Jonas Platte
3e17fc2072
Add a description for matrix-sdk-ui
2024-01-05 14:23:41 +01:00
Jonas Platte
40b09cda2f
Bump all of the versions to 0.7.0
2024-01-05 12:58:54 +01:00
Jonas Platte
2710a85897
Rename matrix-sdk-base/{Changelog => CHANGELOG.md}
...
… for consistency.
2024-01-05 12:58:54 +01:00
Jonas Platte
315e6c9d85
Use workspace dependencies for matrix-sdk-test
2024-01-05 12:58:54 +01:00
Benjamin Bouvier
2822f2471a
Update crates/matrix-sdk/src/room/mod.rs
...
Signed-off-by: Benjamin Bouvier <public@benj.me >
2024-01-05 12:12:52 +01:00
Kévin Commaille
b0530ba3a6
sdk: Create ReportedContentScore
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-01-05 12:12:52 +01:00
Kévin Commaille
844212e965
sdk: Add method to report an event
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2024-01-05 12:12:52 +01:00
Jonas Platte
eb33c3754a
bindings: Move matrix_sdk_ui enum definitions out of UDL
2024-01-04 17:14:44 +01:00
Richard van der Hoff
cf57992346
indexeddb: logging for open sequence ( #2983 )
...
I was trying to figure out what was taking so long, so added some logging.
2024-01-04 15:10:54 +00:00
Benjamin Bouvier
afd05a24df
Rename BaseClient::update_summary to BaseClient::set_room_info
2024-01-04 11:41:50 +01:00
Benjamin Bouvier
0f91eebc96
BaseClient::apply_changes doesn't need to be async
2024-01-04 11:41:50 +01:00
Benjamin Bouvier
30714c3f92
Don't cause a spurious room info update when setting the latest event
2024-01-04 11:41:50 +01:00
Benjamin Bouvier
96b427a332
Add test showing the spurious room info update
2024-01-04 11:41:50 +01:00
Jonas Platte
1c7bf820bf
Use workspace dependencies for crates/* dependencies
...
… except from examples (such that they remain copy-pastable).
2024-01-04 10:02:07 +01:00
Jonas Platte
24b879bbc0
Clean up Cargo manifest formattting
2024-01-04 10:02:07 +01:00
Jonas Platte
c4724c082e
Upgrade dependencies
2024-01-02 19:12:42 +01:00
Valere
541d9184c6
remove expensive db call for tracing
2023-12-22 16:19:25 +01:00
Benjamin Bouvier
45bdbf5067
Add test to make sure notification count is taken into account when processing sliding sync
2023-12-22 14:45:54 +01:00
Benjamin Bouvier
04ef3d9f95
Fix: revert notification count change from read receipts PR
...
This was modified and then removed from the PR, and forgot to put back the previous
implementation.
2023-12-22 14:45:54 +01:00
Benjamin Bouvier
75fe874cae
read receipts: don't update a RoomInfo if the read receipts haven't changed
2023-12-21 17:41:35 +01:00
Benjamin Bouvier
2a77aaa068
read receipts: update the API shape of compute_notifications
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
4a686229e1
read receipts: make find_and_count_events a method of RoomReadReceipts
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
d64fb8241d
read receipts: add test for find_and_count_events
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
870d1eafb4
read receipts: add RoomReadReceipts::reset
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
a9905eaedd
read receipts: don't count the same action multiple time per event
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
f1c15da87d
read receipts: make count_unread_and_mention a method of RoomReadReceipts and rename it
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
f2b53080b6
read receipts: move RoomReadReceipts to the read_receipts.rs file
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
7fe4e22076
read receipts: test count_unread_and_highlights
2023-12-21 15:54:19 +01:00
Benjamin Bouvier
b6dab1a3a5
read receipts: compute_notifications doesn't need to be async
2023-12-21 15:54:19 +01:00
Andy Balaam
ec833c81e0
Migrate inbound_group_session2 to fix keys incorrectly copied from old store version ( #2957 )
...
In migrate_data_for_v6, we incorrectly copied the keys in inbound_group_sessions verbatim into inbound_group_sessions2. What we should have done is re-encrypt them using the new table name, so we fix that up with a new migration here.
This caused the bug because we were looking for sessions to mark as backed up by calculating their key (from room_id and session_id) but that key did not exist, because the old sessions were stored under the incorrect keys. So no sessions were marked as backed up, and we repeatedly tried to re-mark them.
2023-12-21 14:52:02 +00:00
Ivan Enderlin
de0574aa14
Merge pull request #2925 from zecakeh/create-dm-encrypted
...
client: Allow to create encrypted DM
2023-12-21 14:38:32 +01:00
Benjamin Bouvier
d6bcbf2281
Address review comments
...
- copyright notice
- doc comments and better doc in general
- use static dispatch instead of &dyn T
- other misc comments
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
cbc832411d
read receipts: add an extra num_unread_notifications field
...
This helps supporting cases where we want to show that a room has some activity (unread messages) but no notifications.
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
843fcac3c1
read receipts: don't clone cached events for computing the read receipt state
...
Before this patch, we needed to clone the inner `timeline_queue` and turn it into a concrete `Vec<SyncTimelineEvent>`, just to iterate on the elements,
and because returning an iterator from a trait method is impractical. This now changes it to return the actual concrete type of `timeline_queue`, so
we don't need the extra allocations.
Ideally, matrix-sdk and matrix-sdk-base would be merged, so we don't need to use a trait at all here.
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
b3a8f34655
read receipts: move the unread messages and mentions counts to separate fields of RoomInfo
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
73af3d9cfa
Make it clear that some functions are tests or test helpers only
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
9ba09b2ae8
sync: process unread notification count client-side
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
c9b02ad068
doc: document SlidingSyncRoomInner::timeline_queue a bit better
2023-12-21 11:55:29 +01:00
Benjamin Bouvier
07c428ec56
sdk base: add latest_read_receipt_event_id field to RoomInfo
2023-12-21 11:55:29 +01:00