Ivan Enderlin
1dccea8735
doc: Fix a typo.
2023-03-01 19:59:55 +01:00
Ivan Enderlin
ccd9ad7b49
chore(bindings): Simplify the code.
...
Rust is a beautiful language. Let's use all the great constructions it gives to
us to write pretty code.
2023-03-01 16:42:47 +01:00
Ivan Enderlin
4212980f32
chore(bindings): Remove a From<JoinHandle> for TaskHandle impl.
...
This implementation is never used.
2023-03-01 16:42:09 +01:00
Ivan Enderlin
9b1c5079e6
chore: cargo fmt.
2023-03-01 15:58:22 +01:00
Ivan Enderlin
a341caa773
chore(sdk): Continue the move from view to list in Sliding Sync.
2023-03-01 15:46:40 +01:00
Ivan Enderlin
b4bf544676
test: Continue the move from view to list in Sliding Sync.
2023-03-01 15:43:59 +01:00
Ivan Enderlin
bfb55d782f
chore(sdk): Clean up rooms_ops.
2023-03-01 15:38:15 +01:00
Ivan Enderlin
3bad2a84ad
chore(sdk): Remove SlidingSyncListRequestGenerator::live_request.
2023-03-01 15:17:53 +01:00
Ivan Enderlin
866c91ffbc
chore(sdk): Simplify code of Sliding Sync request generator.
2023-03-01 15:17:31 +01:00
Ivan Enderlin
c03ba55f24
chore(sdk): Rename InnerSlidingSyncListRequestGenerator to GeneratorKind.
2023-03-01 15:04:37 +01:00
Ivan Enderlin
1f5c4feafc
chore(sdk): Extract Sliding Sync request generators into their own module.
2023-03-01 15:01:02 +01:00
Ivan Enderlin
6d2055449d
chore(bindings): Continue to rename view to list in Sliding Sync.
2023-03-01 14:51:34 +01:00
Ivan Enderlin
f5cc6feccd
chore(sdk): Split the list.rs module into list/mod.rs and list/builder.rs.
2023-03-01 14:43:58 +01:00
Ivan Enderlin
c5d5deba8e
chore: Continue the renaming from view to list for Sliding Sync.
2023-03-01 14:39:09 +01:00
Ivan Enderlin
d829fd3376
chore(bindings): Continue the renaming from view to list for Sliding Sync.
2023-03-01 14:38:43 +01:00
Ivan Enderlin
50a248c18b
chore(sdk): Continue the renaming from view to list for Sliding Sync.
2023-03-01 14:38:26 +01:00
Ivan Enderlin
c366eadf33
chore(sdk): Rename variables, clean up code, improve documentation…
2023-03-01 14:35:46 +01:00
Ivan Enderlin
4e4c745032
chore(sdk): Update all mentions to view as list in SlidingSyncList.
2023-03-01 14:20:44 +01:00
Ivan Enderlin
f03767318f
chore(sdk): Update all mentions to view as list in SlidingSync and SlidingSyncBuilder.
2023-03-01 14:18:40 +01:00
Ivan Enderlin
cf83112bf0
chore(sdk): Move FrozenSlidingSyncList lower in the file.
2023-03-01 13:58:55 +01:00
Ivan Enderlin
5377bb7ecf
fix(sdk): Rename SlidingSyncView to SlidingSyncList.
...
The specification describes “list”, not “view”. Consistency is important, so
let's rename this type!
2023-03-01 12:09:34 +01:00
Ivan Enderlin
629b74e4f5
chore(sdk): Rename the sliding_sync::view module to …::list.
2023-03-01 11:56:01 +01:00
Stefan Ceriu
ff5dedbb07
fix(sliding_sync): Prevent PagingFullSync and GrowingFullSync from going over the total room count
2023-02-28 18:32:11 +01:00
Stefan Ceriu
5c3972938e
chore: Add platform versions for swift CI tests
2023-02-28 15:06:23 +01:00
Jonas Platte
b936d3e32d
chore: Remove workaround for clippy bug that was fixed
2023-02-28 12:36:08 +01:00
Kévin Commaille
da8d74ccc1
feat(sdk): Keep track of events read receipts in the timeline API
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:44:35 +01:00
Kévin Commaille
6aad2a661d
refactor(sdk): Rename ProfileProvider to RoomDataProvider
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:44:35 +01:00
Kévin Commaille
3139204f4b
fix(examples): Don't use the sled store if the session is not persisted
...
Running the same example twice
borks encryption.
Instead point to an example that shows how to do it.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:20:53 +01:00
Kévin Commaille
1684dbe0a1
feat(examples): Add example to persist a session
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-02-28 09:20:53 +01:00
Doug
9531dc195a
fix(bindings): Fix double quotes when replying to a reply.
2023-02-27 18:23:49 +01:00
Sam Wedgwood
abab6dcf0f
docs(crypto): Fix typo
...
Signed-off-by: Sam Wedgwood <sam@wedgwood.dev >
2023-02-27 15:39:01 +00:00
Ivan Enderlin
d699161981
chore(sdk): Code reorganization of the sliding_sync module + doc improvement
...
chore(sdk): Code reorganization of the `sliding_sync` module + doc improvement
2023-02-27 15:27:08 +01:00
Ivan Enderlin
927c44bec3
doc(sdk): Fix doctests + remove mentions to futures-signals.
2023-02-27 15:08:13 +01:00
Ivan Enderlin
96248248ca
chore(sdk): Move UpdateSummary at the bottom of the module.
2023-02-27 13:56:04 +01:00
Ivan Enderlin
b7b86fa95b
fix(sdk): Few fixes and cleans up of SlidingSync itself
...
fix+chore(sdk): Few fixes and cleans up of `SlidingSync` itself
2023-02-27 13:50:48 +01:00
Ivan Enderlin
4f7186a840
chore(sdk): Simplify the implementation of RoomListEntry.
2023-02-27 13:49:34 +01:00
Ivan Enderlin
9b062fa782
chore(sdk): Move RoomListEntry into the sliding_sync::view module.
2023-02-27 13:43:40 +01:00
Ivan Enderlin
4d8c3172a4
chore(sdk): Extract Error into its own module.
2023-02-27 13:42:01 +01:00
Ivan Enderlin
b1c9ea9aa3
chore(sdk): Move SlidingSyncMode into the sliding_sync::view module.
2023-02-27 13:38:54 +01:00
Ivan Enderlin
49eee14665
chore(sdk): Move SlidingSyncState into the sliding_sync::view module.
2023-02-27 13:38:09 +01:00
Ivan Enderlin
6cec946401
chore(sdk): Improve documentation of SlidingSync.
2023-02-27 13:36:08 +01:00
Jonas Platte
d06e8ccfc5
refactor: Upgrade eyeball and use SharedObservable
...
… but not in sliding sync yet, where some planned refactorings might
conflict with this.
2023-02-27 13:29:28 +01:00
Ivan Enderlin
ac1d5afac3
doc(sdk): Improve inline documentation with link to an issue.
2023-02-27 13:29:03 +01:00
Ivan Enderlin
f51b51b19e
chore(sdk): Avoid mapping to a function returning ().
2023-02-27 12:14:01 +01:00
Ivan Enderlin
16c9845a47
chore(sdk): Rename SlidingSync.failure_count to .reset_counter.
...
This patch cleans up the `SlidingSync::stream` method. It renames variables,
improves log messages etc.
This patch also creates a new `MAXIMUM_SLIDING_SYNC_SESSION_EXPIRATION`
constant. This value was previously hardcoded and lost in the code, now it's
easier to spot it for further updates.
This patch finally renames the `failure_count` field to `reset_counter`,
because it doesn't count the number of failure, but the number of
`ErrorKind::UnknownPos` exactly, i.e. the number of times we reset the
`SlidingSync` state.
2023-02-27 12:09:14 +01:00
Ivan Enderlin
4dbd1a7db4
fix(sdk): Fix join in SlidingSync::sync_once.
...
This patch cleans up the `SlidingSync::sync_once` method by renaming variables,
adding more comments, simplifying the code by reducing the number of variables
etc.
This patch also changes `futures_util::join!` to `futures_util::future::join`.
It does the same but the macro needs the `async-await-macros` feature to be
turned on, while the second works without any features.
Finally, this patch improves the log messages by making them more clear for a
new reader.
2023-02-27 11:56:16 +01:00
Ivan Enderlin
e5c85410a8
doc(sdk): Fix documentation, add links etc.
2023-02-27 11:54:48 +01:00
Ivan Enderlin
98ea3f096b
chore(sdk): Clean up code of SlidingSync::cache_to_storage.
2023-02-27 11:54:13 +01:00
Anderas
f0986643ce
chore(crypto): Log Olm session identifiers
...
Co-authored-by: Damir Jelić <poljar@termina.org.uk >
matrix-sdk-crypto-ffi-0.2.1
2023-02-27 10:59:30 +01:00
Ivan Enderlin
b214a0e098
feat(sdk): Remove clones of large responses in Sliding Sync
...
feat(sdk): Remove clones of large responses in Sliding Sync
2023-02-27 09:47:26 +01:00