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
575eea4701
fix(sdk): Deal with missing data in Sliding Sync's responses.
...
The Sliding Sync server might not send some parts of the response, because they
were sent before and the server wants to save bandwidth. So let's update values
only when they exist.
2023-03-01 12:19:30 +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
Ivan Enderlin
9475bb4d53
chore(indexeddb): Update version of uuid
...
chore(indexeddb): Update version of `uuid`
2023-03-01 09:09:15 +01:00
Ivan Enderlin
452588a18e
chore(indexeddb): Update version of uuid.
2023-03-01 08:26:28 +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
valere
6539dc3060
quick typo
2023-02-28 17:53:54 +01:00
valere
7b8608e4c5
refactor(withheld) better type for no_olm
2023-02-28 17:38:37 +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
valere
f4d4d96c8e
support migration for outbound after withheld addtition
2023-02-27 09:56:56 +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
Ivan Enderlin
70380a6ee4
doc(sdk): Improve documentation of SlidingSync::handle_response.
2023-02-27 09:30:50 +01:00
valere
39997376af
fix js binding test
2023-02-25 16:33:16 +01:00
valere
58fa9d7767
fix ci
2023-02-25 16:18:06 +01:00
valere
ad18ecc2c1
cleaning
2023-02-25 10:50:37 +01:00
valere
ff500fc707
fix unused result
2023-02-25 10:39:17 +01:00
valere
76a286c91d
feat(withheld) sled store support
2023-02-25 10:31:23 +01:00
valere
6cc31a0e13
fix clippy
2023-02-24 17:15:51 +01:00
valere
228b963f74
feat(withheld) fix indexeddb test
2023-02-24 16:39:37 +01:00
Jonas Platte
1783cd7738
test: Remove unused constant
2023-02-24 12:39:55 +01:00
Jonas Platte
32e8cb76b0
ci: Remove unused FeatureSet variant
2023-02-24 12:39:55 +01:00
valere
81c9f57e02
clippy fix
2023-02-23 18:02:45 +01:00
Benjamin Kampmann
e162c99074
feat: Handy function to update power levels of a room
2023-02-23 17:53:48 +01:00