Jonas Platte
7dd086fcdc
Make sqlite bundling optional
2023-03-30 17:59:51 +02:00
Kévin Commaille
48b67759ed
sdk: Make PaginationOption's custom variant's strategy return a ControlFlow
...
It is semantically more correct than an Option.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-30 14:39:08 +00:00
innocent fish
a35d96c15e
Update swift.rs
2023-03-30 16:08:06 +02:00
Alfonso Grillo
ade7fabb6b
Add Client::get_profile
2023-03-30 15:44:27 +02:00
Richard van der Hoff
43d4e7b46a
Merge pull request #1719 from matrix-org/release-matrix-sdk-crypto-js-0.1.0-alpha.6
...
matrix-sdk-crypto-js v0.1.0-alpha.6
2023-03-30 13:53:39 +01:00
Kévin Commaille
408f966a50
sdk: Rename flag to update fully-read marker
...
Its meaning has changed since it is used in more cases.
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-30 14:23:57 +02:00
Kévin Commaille
553ffe97a8
sdk: Never insert read marker in last position in timeline
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-30 14:23:57 +02:00
Richard van der Hoff
f246296ff9
matrix-sdk-crypto-js v0.1.0-alpha.6
Release `crypto-js` / Publish 🕸 [m]-crypto-js (push) Failing after 34s
matrix-sdk-crypto-js-0.1.0-alpha.6
matrix-sdk-crypto-js-v0.1.0-alpha.6
2023-03-30 12:26:29 +01:00
Mauro
ca6faffc72
bindings: Reset the timeline when the user's ignore list is updated
2023-03-30 11:22:06 +00:00
Richard van der Hoff
f9881065c1
Add an API to notify apps when a megolm key is received
...
This is useful for applications which want to have another go at decryption
when some room keys arrive.
2023-03-30 12:29:39 +02:00
Damir Jelić
7fd1c93e1a
Document the fact that we require protoc to build the bindings
2023-03-30 11:06:15 +02:00
Doug
a33d2ad28f
bindings: Add ignore_user
2023-03-30 08:59:19 +00:00
Jonas Platte
6b5f0b8ec3
Reset visible timeline when a gappy sync arrives
2023-03-29 14:00:33 +02:00
Jonas Platte
50cc356c7b
Use Observable for sliding_sync_reset_broadcast_tx
2023-03-29 13:23:24 +02:00
Jonas Platte
2ac192f307
Use str::to_owned instead of str::to_string
...
Expresses intent more clearly.
2023-03-29 13:23:24 +02:00
Damir Jelić
03aba95e1e
Switch the FFI bindings to use the SQLite cryptostore
2023-03-29 11:44:33 +02:00
Jonas Platte
d680b331d0
Make tokio a workspace dependency
2023-03-28 21:08:57 +02:00
Jonas Platte
cd33d8ca38
Always use RwLock and Mutex from tokio
...
… instead of async-lock, which we previously used on wasm.
2023-03-28 21:08:57 +02:00
Jonas Platte
9bfd88cec4
sdk: Always use tokio OnceCell
...
Tokio's sync module works on wasm as well.
2023-03-28 21:08:57 +02:00
dependabot[bot]
8b5de47acb
chore(deps): bump openssl from 0.10.45 to 0.10.48 ( #1706 )
...
Bumps [openssl](https://github.com/sfackler/rust-openssl ) from 0.10.45 to 0.10.48.
- [Release notes](https://github.com/sfackler/rust-openssl/releases )
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.45...openssl-v0.10.48 )
---
updated-dependencies:
- dependency-name: openssl
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
matrix-sdk-crypto-ffi-0.3.2
2023-03-25 21:12:52 +01:00
Kévin Commaille
5a7ea607c6
sdk: Use new filter constructor to enable room members lazy-loading
...
* sdk: Use new filter constructor to enable room members lazy-loading
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-25 21:12:09 +01:00
Flescio
09fc258f9a
ffi: Make name parameter optional in CreateRoomParameters
2023-03-23 16:56:52 +00:00
Ivan Enderlin
8d4ceac21f
test(sdk): Continue to fix, test and clean up SlidingSyncList
...
test(sdk): Continue to fix, test and clean up `SlidingSyncList`
2023-03-23 13:18:09 +01:00
Ivan Enderlin
fa361aea16
chore(sdk): Make Clippy happy.
2023-03-23 11:18:09 +01:00
Ivan Enderlin
91e9942fcd
feat(sdk): Export FrozenSlidingSyncList into its own module.
2023-03-23 11:15:24 +01:00
Kévin Commaille
5eeea83c19
sdk: Get push actions of retried decrypted events in the timeline
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-23 10:59:55 +01:00
Kévin Commaille
98386cf527
sdk: Get push actions of decrypted events
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-23 10:59:55 +01:00
Kévin Commaille
a3667a21c9
sdk: Simplify e2ee branching of Common::event
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-23 10:59:55 +01:00
Kévin Commaille
fae10ae7f3
sdk: Add private method to get the current push rules
...
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr >
2023-03-23 10:59:55 +01:00
Ivan Enderlin
1db8084c4f
chore(sdk): Make Clippy happy.
2023-03-23 10:38:37 +01:00
Ivan Enderlin
b544639187
chore(sdk): Re-ordering methods inside SlidingSyncList.
2023-03-23 10:07:19 +01:00
Ivan Enderlin
5e1fda9834
test(sdk): Update the assert_ranges macro to be able to define the first list state.
2023-03-23 10:05:34 +01:00
Ivan Enderlin
5bae1a2a4e
chore(sdk): rooms_ops takes a &[(UInt, UInt)] for the ranges.
2023-03-22 16:59:45 +01:00
Ivan Enderlin
defe48bf3c
test(sdk): Test SlidingSyncList::get_room_id.
2023-03-22 16:45:53 +01:00
Ivan Enderlin
caf55308a5
feat(sdk): Remove SlidingSyncList::rooms_updated_broadcast_stream.
...
This method is never used by the clients, so it's basically public dead
code. It doesn't fulfill a particular requirement nor a need, so let's
remove it.
Fixes https://github.com/matrix-org/matrix-rust-sdk/issues/1694 .
2023-03-22 16:40:06 +01:00
Ivan Enderlin
f2aebcb983
test(sdk): (Re)write a test for SlidingSyncListInnner::find_rooms_in_list.
2023-03-22 16:40:06 +01:00
Ivan Enderlin
2840242331
chore(sdk): Use &[…] instead of &Vec<…>.
...
One less pointer indirection.
2023-03-22 16:40:06 +01:00
Ivan Enderlin
69a779a7eb
feat(sdk): Improve SlidingSyncListInner::find_rooms_in_list.
...
The `SlidingSyncListInner::find_rooms_in_list` method can be greatly
improved by using the `Iterator` API.
It was already using `Iterator::skip`, great! Let's continue by using
`Iterator::take` instead of using a stop index.
And let's use `Iterator::enumerate` to avoid using a mutable index.
2023-03-22 16:40:06 +01:00
Ivan Enderlin
b7da197846
doc(sdk): Add missing documentation.
2023-03-22 16:40:06 +01:00
Ivan Enderlin
0b9b01727e
feat(sdk): Remove find_rooms?_in_list from the public API.
...
`SlidingSyncList::find_room_in_list` and
`SlidingSyncList::find_rooms_in_list` aren't useful (and never used) by
the public consumer of this API. Let's remove it. They are only used for
internal purposes.
2023-03-22 16:40:06 +01:00
Ivan Enderlin
0d58695e39
feat(sdk): SlidingSyncListInner::update_request_generator_state returns a Result.
...
Before, the `update_request_generator_state` method was emitting an
`error!` log, but not an error. But that's clearly an error!
This patch updates the method to return a `Result<(), Error>`, and adds
a new variant to `Error`.
2023-03-22 16:40:06 +01:00
Ivan Enderlin
f5ba7ddc4a
fix(sdk): Prevent bugs, remove expensive clones, and simplify SlidingSyncList
...
fix(sdk): Prevent bugs, remove expensive clones, and simplify `SlidingSyncList`
2023-03-22 16:39:30 +01:00
Ivan Enderlin
7052e9ff64
doc(sdk): Fix typos.
2023-03-22 16:38:45 +01:00
Ivan Enderlin
8796bfe874
doc(sdk): Fix typos.
2023-03-22 16:16:33 +01:00
Ivan Enderlin
9e7c6c3632
feat(sdk): Remove deduplication logic from Sliding Sync
...
feat(sdk): Remove deduplication logic from Sliding Sync
2023-03-22 14:44:45 +01:00
Ivan Enderlin
6617e94a9d
Merge pull request #1632 from Hywan/doc-sdk-sliding-sync
...
doc(sdk): Rephrase the Quick refreshing Section
2023-03-22 14:19:46 +01:00
Ivan Enderlin
7e8c8b1a14
chore(sdk): Make Clippy happy.
2023-03-22 13:31:48 +01:00
Ivan Enderlin
9078a30e28
chore(sdk): Move code around, and remove pub on fields of a private struct.
2023-03-22 13:17:52 +01:00
Ivan Enderlin
485ca402f4
test: Use available setter.
2023-03-22 13:17:52 +01:00
Ivan Enderlin
d41293879a
test(sdk): Move tests from list/request_generator.rs to list/mod.rs.
2023-03-22 13:17:52 +01:00