Benjamin Bouvier
4164effbf9
Bump matrix-sdk to 0.7.1
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
0.7.0
2024-01-05 14:23:41 +01:00
Jonas Platte
f08e978540
Upgrade uniffi
...
… and specify a version such that publishing of the ui crate becomes possible.
We still use a git dependency for FFI crate builds because there were some
likely important breaking changes that haven't been released.
This is required to publish `matrix-sdk-ui`.
2024-01-05 14:03:44 +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
Jonas Platte
d9f99f84f5
Fix Cargo warning about deafult-features
...
`default-features = false` was already a no-op prior to workspace dependency change,
as `matrix-sdk-crypto` has no default features.
2024-01-04 14:54:33 +01: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
0f8b99b744
Remove spurious testing guards in the read status integration test
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
51a0bb6f3b
ci: Upgrade typos action
2024-01-04 09:53:17 +01:00
Jonas Platte
9eca314511
Fix a typo
2024-01-04 09:53:17 +01:00
Jonas Platte
c4724c082e
Upgrade dependencies
2024-01-02 19:12:42 +01:00
manuroe
3d9d3b7ca6
Merge pull request #2977 from matrix-org/valere/long_mark_as_sent
...
Remove an expensive database call only used for tracing prupose
2024-01-02 13:35:36 +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
fb1ff70538
Disable integration test in code coverage build
...
The test fails only in the codecov build, not in a local build or in the other integration test.
Needs further investigation.
2023-12-21 11:55:29 +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
09e355a7bc
read receipts: add integration tests for read receipts
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
Valere
d4b8f88e10
Fix regenerate_olm_machine losing backup state ( #2961 )
...
* Fix regenerate_olm_machine loosing backup state
* use new helper
* clippy fix
* quick review
2023-12-21 09:43:55 +01:00