Benjamin Bouvier
51dcdac46d
TERRIBLE HACK: save the pos value in the crypto store
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
be3616c6b2
chore: rename restore_pos_from_database to share_pos
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
05a8343d03
chore: rename previous_pos to pos
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
28d25882c2
chore: fmt + clippy
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
5eb455032e
tests: add test and maintain property that in-memory pos == db pos at all times
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
6b84d03e2f
feat(encryption sync): restore the stream position from the database
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
08b9f0640c
feat: add a new sliding sync option to restore the stream position from the database
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
4b67a6608e
feat: persist previous pos when saving/restoring a sliding sync
2023-08-31 16:08:45 +02:00
Benjamin Bouvier
941ecbfe0d
chore: refactor fields restored by restore_sliding_sync_state
2023-08-31 16:08:45 +02:00
Ivan Enderlin
719cbee96e
feat(ui): Fine-tuning RoomList again
...
feat(ui): Fine-tuning `RoomList` again
2023-08-31 12:57:27 +02:00
Benjamin Bouvier
11404010e6
chore: disable colors for logging in FFI for logcat and stdout too
2023-08-31 12:13:25 +02:00
Ivan Enderlin
4b04f15bc5
chore(ui): Naming is hard :-).
2023-08-31 12:04:14 +02:00
Doug
7e71c79072
chore(sdk): Log the OIDC refresh token (hashed). ( #2486 )
...
* chore(sdk): Log the OIDC refresh token (hashed).
* chore(sdk): Fix Clippy and PR comments.
2023-08-31 09:25:46 +00:00
Benjamin Bouvier
50a3da386e
feat: enable read receipts in the room list service sliding sync
2023-08-31 11:08:56 +02:00
Benjamin Bouvier
eebf271d6c
chore: use a workspace dependency for assert-json-diff
2023-08-31 10:34:46 +02:00
Benjamin Bouvier
4665277842
test(sliding sync): skipping b/o mode change doesn't change parameters in other lists
...
w
2023-08-31 10:34:46 +02:00
Ivan Enderlin
5a0c230a2d
feat(ui): visible_rooms can shrink its timeline_limit.
...
This patch updates the behavior of `visible_rooms` where its
`timeline_limit` is shrunk and expanded when the state machine is
recovering.
2023-08-31 10:31:44 +02:00
Ivan Enderlin
7819938149
feat(ui): invites is always defined in RoomListService.
...
This patch updates `RoomListService` to install the `invites` sliding
sync list from the start, along with `all_rooms`. Prior to the patch,
`invites` was installed after the first sync.
`invites` is installed in selective sync-mode with a range of `0..=0`.
After the next sync, `invites` switched its sync-mode to growing with a
batch size of `0..=19`.
2023-08-30 21:20:29 +02:00
Jonas Platte
06a19f016e
ffi: Only ever call ClientDelegate methods in a blocking task
...
… and clean up a few unnecessary Arc's.
2023-08-30 15:29:06 +02:00
Jonas Platte
5630851062
Upgrade Ruma
2023-08-30 15:22:00 +02:00
Ivan Enderlin
6b50a8988b
Merge pull request #2463 from matrix-org/jmartinesp/add-x86-64-workaround-to-crypto-sdk-in-main
...
Add the x86-64 Android workaround to the Crypto SDK too
2023-08-30 15:12:17 +02:00
Jonas Platte
1311ddbae3
ffi: Disable colorization of tracing fields
2023-08-30 14:07:22 +02:00
Ivan Enderlin
5564d323f5
fix(ui): Try to make RoomListService fast for gigantic accounts with various network speeds
...
fix(ui): Try to make `RoomListService` fast for gigantic accounts with various network speeds
2023-08-30 14:06:23 +02:00
Ivan Enderlin
3062f30e08
chore(ffi): Add the RoomListServerState::Recovering variant.
2023-08-30 13:17:05 +02:00
Ivan Enderlin
e8815d83b8
feat(ui): Add a new Recovering intermediate state in RoomListService.
...
This patch takes inspiration of
https://github.com/matrix-org/matrix-rust-sdk/pull/2480 .
This patch adds a new `Recovering` state, which is a “transition”
between `Error` and `Terminated` to `Running`. When moving from `Error`
or `Terminated` to `Recovering`, `all_rooms`' sync-mode is set to
`Selective` with its initial range. Then when moving from `Recovering`
to `Running`, `all_rooms`' sync-mode is set to `Growing` with its
initial range again. For the `invites` list, it is reset to its initial
range when moving to `Recovering` too.
`Error` and `Terminated` now act the same.
2023-08-30 13:13:16 +02:00
Jonas Platte
ca0c1f567a
sdk: Add widget::EventFilter matching
...
Co-authored-by: Timo K <toger5@hotmail.de >
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com >
2023-08-30 12:57:54 +02:00
Jonas Platte
04fee2952f
sdk: Split widget EventFilter into sub-types
...
… and move them into their own module.
Co-authored-by: Timo K <toger5@hotmail.de >
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com >
2023-08-30 12:57:54 +02:00
Jonas Platte
c589bd0cd1
sdk: Add extra docs for widget channels
2023-08-30 12:57:54 +02:00
Jonas Platte
959b594c43
sdk: Rename widget::Info to WidgetSettings
2023-08-30 12:57:54 +02:00
Alfonso Grillo
c567f963d5
ffi: Add send fn's for poll response and poll end
2023-08-30 09:44:08 +00:00
Ivan Enderlin
e3aec5ebbc
fix(ui): Update batch_size of all_rooms to 100.
...
This patch updates the `batch_size` of `all_rooms` once in growing
sync-mode to 100. It was previously increased from 50 to 200 in
12a1f25ec3 . In some situations, it
generates very large payloads that can take time to be delivered to the
user with a slow network.
This patch tries to fine-tuned the `batch_size` value.
2023-08-30 08:48:55 +02:00
Ivan Enderlin
e5a5dac099
fix(ui): Revert timeline_limit to 1 for all_rooms.
...
This patch reverts b2cc279279 . On the
paper, it was a good idea. In practise, it has revealed a bug on the
server side. The only solution to mitigate this bug for now is to revert
the `timeline_limit` to 1.
2023-08-30 08:38:05 +02:00
Nicolas Mauri
1cc11ae988
feat(ffi): Add a notification_mode property to room_info ( #2460 )
...
* feat(ffi): Add a notification_mode property to room_info
* feat(sdk): Add a notification_mode() function to Room
* Fix Rust syntax
2023-08-29 12:25:26 +00:00
Doug
58d30454ae
feat(bindings): Add logo_uri to OidcConfiguration
...
… and make most OidcConfiguration properties optional.
2023-08-29 13:35:10 +02:00
Jonas Platte
0590543df1
ffi: Add custom tracing log formatter ( #2464 )
...
Co-authored-by: Benjamin Bouvier <public@benj.me >
2023-08-28 15:05:21 +00:00
Ivan Enderlin
30731d60d7
feat(sdk): Adjust room_list observable capacity
...
feat(sdk): Adjust `room_list` observable capacity
2023-08-28 16:58:05 +02:00
Benjamin Bouvier
98dafac236
feat: time how long it takes to restore lists from the cache
2023-08-28 16:52:43 +02:00
Benjamin Bouvier
b6c658aefa
feat: introduce timer helper
2023-08-28 16:52:43 +02:00
Ivan Enderlin
c23e8863fc
feat(sdk): Adjust room_list observable capacity.
...
Prior to this patch, we have increased the
`SlidingSyncListInner::room_list` capacity, to avoid trigger
`VectorDiff::Reset` as much as possible. Now that Element X is optimised
to handle larger diff, we can discrease this number, yeeeee :-).
2023-08-28 16:33:02 +02:00
Ivan Enderlin
9d9add39fb
Merge pull request #2466 from Hywan/feat-ui-roomlist-all-rooms-timeline-limit-0
2023-08-28 15:29:27 +02:00
Ivan Enderlin
b2cc279279
feat(ui): Change all_rooms to timeline_limit=0.
...
When a user has hundreds of rooms, `RoomListService` will fetch at worst
one event per room, which can generate large responses. Let's use a
`timeline_limit=0`.
2023-08-28 14:50:55 +02:00
aringenbach
8cb00510d2
ffi: use RoomMessageEventContentWithoutRelation for send / reply / edit
2023-08-28 11:26:51 +02:00
Nicolas Mauri
63196aa6aa
fix(sdk): limit the number of retries when updating push rules. ( #2461 )
...
* fix(sdk): limit the number of retries when updating push rules.
* fix Rust format
2023-08-25 15:11:49 +00:00
Jorge Martín
e7ad46f5a0
Fix formatting
2023-08-25 14:37:09 +02:00
Jonas Platte
2311edecf6
ui: Remove unused import
2023-08-25 14:14:56 +02:00
Jonas Platte
aed9b20195
Silence clippy lint arc_with_non_send_sync on wasm
2023-08-25 14:14:56 +02:00
Jorge Martín
1d08ffa05e
Add the x86-64 Android workaround to the Crypto SDK too
2023-08-25 13:31:12 +02:00
Jonas Platte
e02aa6b132
ffi: Add Room::{room_info, subscribe_to_room_info_updates}
2023-08-25 11:39:57 +02:00
Jonas Platte
9a0869dff8
base: Add Room::subscribe_info
2023-08-25 11:39:57 +02:00
Jonas Platte
72b11d5cc6
sdk: Replace Arc<RwLock<_>> around RoomInfo with SharedObservable
2023-08-25 11:39:57 +02:00