Damir Jelić
a992a4e831
feat(store-encryption): Derive Eq for some structs
2022-05-23 11:14:09 +02:00
Benjamin Kampmann
08718acd57
Merge pull request #698 from matrix-org/poljar/rename-encrypt-method
...
refactor(crypto): Make it clear that the encrypt method is for room events
2022-05-20 10:35:03 +02:00
Damir Jelić
f3045dbf99
fixup! refactor(crypto): Make it clear that the encrypt method is for room events
2022-05-20 08:32:50 +02:00
Jonas Platte
d6c6211c00
chore: Use matrix_sdk::Result alias more
2022-05-20 07:52:39 +02:00
Jonas Platte
85949081ce
chore: Consistently use anyhow for Result-returning doctests
...
Cuts down on syntactic noise.
2022-05-20 07:52:39 +02:00
Jonas Platte
cbcc5feef2
fix(sled): Fix unused import when experimental-timeline isn't enabled
2022-05-20 07:52:39 +02:00
Jonas Platte
1b569a8fd4
chore: Consistently use anyhow::Result for example main fn's
...
When an `Err` is propagated out of `main`, it will be printed using
`Debug`, which is much easier to read in anyhow::Error's case. See also
https://docs.rs/anyhow/latest/anyhow/struct.Error.html#display-representations
2022-05-20 07:52:39 +02:00
Damir Jelić
813f388812
refactor(crypto): Make it clear that the encrypt method is for room events
2022-05-20 07:47:47 +02:00
Damir Jelić
552de33dbc
Merge branch 'dkasak/docs-improvements'
2022-05-20 07:26:00 +02:00
Denis Kasak
c3f2003eb7
docs: Slightly reword CryptoStore doc for consistency.
2022-05-19 16:22:09 +02:00
Denis Kasak
3b70d7f9ba
docs: Improve wording of store module-level comment
...
Includes a fix to refer to the `e2e-encryption` feature instead of
`encryption` (which doesn't exist).
2022-05-19 16:22:09 +02:00
Denis Kasak
c00c9d7b81
docs: Reword feature table so the wording is more uniform
2022-05-19 16:22:09 +02:00
Denis Kasak
126e8f1bd9
docs: Unify references to "cryptostore" as "crypto store"
2022-05-19 16:22:09 +02:00
Denis Kasak
9e6e76e5ed
docs: Fix reference to ClientConfig in doc comment
2022-05-19 15:38:13 +02:00
Jonas Platte
b955e7aad9
Use anyhow::Ok instead of turbofish on Result
2022-05-18 22:04:44 +02:00
Jonas Platte
a364018c0e
chore: Use serde::de::DeserializeOwned convenience trait
2022-05-18 22:04:44 +02:00
Jonas Platte
0f910b6229
fix(base): Make max_power_level reflect the current maximum only
...
… instead of taking into account an older maximum as well.
2022-05-18 14:03:12 +02:00
Benjamin Kampmann
736f0e7687
feat: Initial apple platforms support
...
Merge pull request #571 from matrix-org/jplatte/matrix-sdk-ffi
2022-05-18 13:14:29 +02:00
Jonas Platte
bc207f1e5c
chore(sdk): Upgrade async-once-cell to 0.3.1
2022-05-18 10:31:52 +02:00
Stefan Ceriu
d863b4eb75
Bump uniffi to version 0.18.0
2022-05-18 11:13:15 +03:00
Julian Sparber
d6f9e5f6b6
Remove extra controll flow
2022-05-17 17:52:12 +02:00
Julian Sparber
9c07ff1166
matrix-sdk: room::Common:messages() don't return decryption error
...
If decryption fails we want that the user still has access to
the events.
This was broken in a previous commit.
2022-05-17 17:23:32 +02:00
Julian Sparber
5bd7d17234
fix(matrix-sdk): room::Common:event() don't return decryption error
2022-05-17 17:03:28 +02:00
Benjamin Kampmann
39f1b9d464
docs: fix link
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2022-05-17 13:54:37 +02:00
Benjamin Kampmann
8a86369e68
Merge branch 'ben-fix-docs' into jplatte/matrix-sdk-ffi
2022-05-17 13:39:46 +02:00
Benjamin Kampmann
a19999b240
docs: fixing broken inner link
2022-05-17 13:38:07 +02:00
Benjamin Kampmann
a72a05edc3
Merge remote-tracking branch 'origin/main' into jplatte/matrix-sdk-ffi
2022-05-17 13:05:24 +02:00
Benjamin Kampmann
2862934b87
style: fix clippy lints for ffi
2022-05-17 12:51:47 +02:00
Amanda Graven
248fff370a
test(base): Remove invalid sync event from json
...
The test json used for mocking a sync response contained an ill-formed
event with a room_id key present in the event. Since the deserialization
ignores the room_id key, this resulted in the client's membership state
evaluating to left going by the contents of the state events, despite
the room being in the "joined" section of the sync response. This is a
violation of the spec.
2022-05-17 11:31:36 +02:00
Ivan Enderlin
426a93f07c
docs(crypto): Remove outdated documentation and use auto-link.
2022-05-17 10:08:42 +02:00
Benjamin Kampmann
0949979a1b
Merge remote-tracking branch 'origin/main' into jplatte/matrix-sdk-ffi
2022-05-16 13:35:51 +02:00
Julian Sparber
c3fc6ff58f
Fix missing import for experimental-timeline feature
2022-05-12 12:38:58 +02:00
Benjamin Kampmann
70c0626882
chore: tag base 0.5.1
2022-05-11 19:01:12 +02:00
Benjamin Kampmann
5570181bf8
fix(sdk): Fix regression with push rules being applied to the own user_id only instead of all but the own user_id
...
Merge pull request #664 from JCWasmx86/ignore_notification
2022-05-11 18:52:55 +02:00
JCWasmx86
3f36528a98
fix(sdk): Fix regression
2022-05-11 18:15:33 +02:00
Benjamin Kampmann
34da27222f
chore: Preparing all the small things for release
...
Merge pull request #657 from gnunicorn/ben-preping-for-release
2022-05-11 18:10:11 +02:00
Benjamin Kampmann
aa69bda05b
feat(matrix-sdk): Expose method to decrypt room events
...
Merge pull request #614 from jsparber/fix_decrypt_timeline
2022-05-11 17:34:19 +02:00
Benjamin Kampmann
8bdd0ffc5d
docs: Update crates/matrix-sdk-crypto-ffi/README.md
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2022-05-11 17:32:22 +02:00
Benjamin Kampmann
c21408934c
chore: Mark crypto-ffi as non-publish
2022-05-11 17:31:19 +02:00
Benjamin Kampmann
daa0768a04
Apply suggestions from code review
...
Co-authored-by: Jonas Platte <jplatte+git@posteo.de >
2022-05-11 17:30:12 +02:00
Benjamin Kampmann
706ea248eb
Merge pull request #660 from gnunicorn/ben-encrypt-indexeddb-cryptostore-keys
...
fix(indexeddb): encrypt crypto-store key
2022-05-11 17:26:41 +02:00
Benjamin Kampmann
d120d9b70f
style(indexeddb): fix import order
2022-05-11 17:09:29 +02:00
Benjamin Kampmann
ef2754736a
docs(sled): Document doubts on sled in the readme
2022-05-11 17:07:07 +02:00
Benjamin Kampmann
45ea472c83
Merge remote-tracking branch 'origin/main' into ben-preping-for-release
2022-05-11 16:57:40 +02:00
Benjamin Kampmann
583810726d
style(indexeddb): Minor style fixes for fmt and clippy
2022-05-11 16:56:18 +02:00
JCWasmx86
5fef975ef2
fix(sdk): Don't send notifications for your own user
2022-05-11 16:52:24 +02:00
Benjamin Kampmann
86d2a74c25
Chore: adding issue tracker link to fixme
2022-05-11 15:32:09 +02:00
Benjamin Kampmann
aa5e28e58f
style(indexeddb): &self.store_cipher instead of Some(ref cipher)
2022-05-11 15:27:28 +02:00
Benjamin Kampmann
0080a74d3b
fix(indexeddb): temporarily disable tests
2022-05-11 15:24:56 +02:00
Benjamin Kampmann
44c5244b9a
style: fixing cargo format
2022-05-11 13:09:07 +02:00