Damir Jelić
c22fa4e3fd
fix(base): Fix a new clippy warning
2022-01-03 10:23:38 +01:00
Julien Merzoug
f7f30f1636
docs(sdk): Fix a typo
2022-01-03 13:05:35 +08:00
Damir Jelić
ae9a554808
Merge branch 'supported-versions'
2021-12-31 14:00:11 +01:00
Kévin Commaille
5ecd74b2e4
feat(sdk): Make get_supported_versions public
2021-12-31 13:02:15 +01:00
Damir Jelić
dd29e2087c
Merge branch 'common-fixes'
2021-12-31 12:54:49 +01:00
Jonas Platte
99ce9419aa
Fix futures-util dependency
...
Turn on alloc feature that is required for `future::join_all`.
2021-12-31 11:00:51 +01:00
Kévin Commaille
0d771565f9
feat(sdk): Simplify the API of Common::event
2021-12-31 02:34:16 +01:00
Kévin Commaille
c35f8c55ac
fix(sdk): Fix docs of Common::active_members_no_sync
2021-12-31 02:16:20 +01:00
ftilde
703e965172
Decrypt messages from room::Common::messages()
...
Due to additional error possibilities and encryption info for messages,
the return type of the method was changed accordingly and a wrapper
struct `Messages` was introduced.
2021-12-29 15:26:45 +01:00
ftilde
046bfa9dad
Fix typo in comment
2021-12-29 15:26:39 +01:00
Damir Jelić
035d319122
Merge branch 'travis/misc'
2021-12-28 11:52:23 +01:00
Damir Jelić
81b730d8c3
Merge branch 'request-config-expose-force_auth'
2021-12-28 11:31:08 +01:00
Damir Jelić
6170be95e1
Merge branch 'membership'
2021-12-28 10:59:34 +01:00
Jonas Platte
d92d7771d9
Add must_use attribute to config constructors and methods
...
These all don't have side effects so discarding the result wouldn't make
sense.
2021-12-27 17:21:21 +01:00
Jonas Platte
f6d7933601
Simplify filter closure
2021-12-27 14:56:31 +01:00
Jonas Platte
abf525390e
Fix clippy warning (remove unnecessary clone)
2021-12-27 14:56:19 +01:00
Jonas Platte
fea80843eb
Remove redundant calls to .into_iter()
2021-12-27 14:21:46 +01:00
Jonas Platte
1a7baf631e
Avoid enormous type name in GroupSessionManager::encrypt_session_for
2021-12-27 14:20:16 +01:00
Travis Ralston
171c334cb1
Add .idea directory to gitignore
2021-12-14 18:59:23 -07:00
Marc 'risson' Schmitt
ba05dd5b8c
feat(RequestConfig): expose force_auth setting
...
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space >
2021-12-13 20:45:51 +01:00
Kévin Commaille
b697bcb4fd
feat(base): Add RoomMember::membership accessor
2021-12-13 16:20:46 +01:00
Damir Jelić
009ead2eea
chore: Bump Ruma.
2021-12-08 16:50:25 +01:00
Damir Jelić
f97aed0e41
Merge branch 'MTRNord-wasm-fix'
2021-12-01 14:51:28 +01:00
Jonas Platte
6519aaff4d
crypto: Fix docs for SledStore
2021-11-30 17:48:49 +01:00
Damir Jelić
8494f10583
Merge branch 'up-ruma'
2021-11-30 09:56:01 +01:00
Jonas Platte
5824cb649e
Update tests
2021-11-29 14:30:45 +01:00
Jonas Platte
dfd59f42a9
Fix warp build error
2021-11-29 13:36:05 +01:00
Jonas Platte
557e038869
Minimal style improvements
2021-11-29 13:27:38 +01:00
Damir Jelić
a628e84b63
fix(crypto): Fix a copy paste error preventing us from verifying users
2021-11-29 09:31:05 +01:00
Jonas Platte
36db5e47dd
Upgrade Ruma
2021-11-26 19:22:54 +01:00
Damir Jelić
56d80b91c9
fix(sdk): Send the crypto requests out before a sync as well
2021-11-26 16:52:32 +01:00
Damir Jelić
b0f48c9660
fix(crypto): Let users fetch our own device out of the store
2021-11-26 16:52:31 +01:00
Damir Jelić
68a2020516
fix(crypto): Check if the device we get from the server matches our own
2021-11-26 16:26:40 +01:00
Damir Jelić
13db642143
fix(cyrpto): Log database upgrades using the debug log level
2021-11-26 16:26:40 +01:00
Damir Jelić
f2c344b39a
fix(crypto): Use the DeviceKeys as the inner type for a ReadOnlyDevice
2021-11-26 16:26:40 +01:00
Damir Jelić
7b6132b71e
feat(crypto): Return the list of room keys we imported
...
Clients might want to retry decryption after they import room keys, for
this to be efficient they'll need to know which room keys got imported.
This patch extends the return value of the room key import result to
include the map of room keys that got imported.
2021-11-25 16:41:28 +01:00
Damir Jelić
10173b990d
fix(sdk): Degrade some logs that show user ids to the debug log level
2021-11-25 14:49:07 +01:00
Damir Jelić
fc74526699
fix(crypto): Add the ability to mark room keys as backed up when importing
2021-11-25 11:18:09 +01:00
Damir Jelić
55973b5bf1
fix(crypto): Make ExportedRoomKey deserialization laxer
...
Some clients might have skipped the serialization of an empty
sender_claimed_keys and the forwarding_curve25519_key_chain, while these
fields are required there's really no upside in requiring them if they
are empty.
So create defaults if they are missing.
2021-11-25 10:20:09 +01:00
Marcel
406aaa0b50
Make sure to also include the uuid create serde feature with wasm
2021-11-24 20:50:36 +01:00
Damir Jelić
33b198d505
fix(crypto): Make sure we remove the unsigned object before signing
2021-11-24 15:56:32 +01:00
Damir Jelić
be70d38e2a
fix(crypto): Use the from constructor for some maps with known values
2021-11-24 15:56:05 +01:00
Damir Jelić
1e70b4f804
fix(crypto): Automatically track your own user if the caller doesn't do so
...
Users of the crypto crate should mark all members that are part of an
E2EE room for tracking, this will of course mark your own user for
tracking.
If the crypto crate user doesn't have any E2EE rooms he may not add any
members to be tracked. The user might still want to inspect their own
E2EE devices and identities. This patch makes sure that our member is
tracked.
2021-11-24 15:21:50 +01:00
Benjamin Kampmann
9835c4ad92
Update to webpack5
2021-11-24 11:00:52 +01:00
Damir Jelić
a49a7fe1f9
fix(crypto): Clear the master key signatures when we verify our own user
2021-11-22 18:00:52 +01:00
Damir Jelić
fa42373cf8
Merge branch 'client-arc'
2021-11-22 16:27:27 +01:00
Damir Jelić
a8c36b4041
Merge branch 'fix-session-doc-example'
2021-11-22 16:24:31 +01:00
Damir Jelić
b91773a276
Merge branch 'store-upgrade-fix'
2021-11-22 16:23:53 +01:00
Damir Jelić
fbc01f015d
fix(sdk): Use the correct restore method in an example
2021-11-22 15:44:35 +01:00
Damir Jelić
5d26e36e1f
fix(crypto): Make sure we store the store version using the right key
2021-11-22 15:28:21 +01:00