Hubert Chathi
92db6599d8
Merge pull request #1270 from matrix-org/uhoreg/expose_prepare_to_encrypt
...
expose prepareToEncrypt in the client API
2020-03-19 10:56:16 -04:00
Hubert Chathi
70fb5dcaa4
Merge pull request #1269 from matrix-org/uhoreg/device_list_no_dying
...
don't kill the whole device download if one device gives an error
2020-03-19 10:56:00 -04:00
Hubert Chathi
9911766435
expose prepareToEncrypt in the client API
2020-03-18 18:53:26 -04:00
Hubert Chathi
fb08ef9a9b
don't kill the whole device download if one device gives an error
2020-03-18 15:28:54 -04:00
Bruno Windels
11e3b1ab53
Merge pull request #1267 from matrix-org/bwindels/handleselfverifstartrace
...
handle racing .start event during self verification
2020-03-18 14:06:45 +00:00
Zoe
3c78f7dbe1
Merge pull request #1266 from matrix-org/foldleft/fix-label-error
...
A crypto.keySignatureUploadFailure event reported the wrong source
2020-03-18 11:21:16 +00:00
Bruno Windels
999cebc304
handle racing .start event during self verification
...
by comparing the device id rather than the user id, as defined in the MSC
2020-03-17 17:51:32 +01:00
Michael Telatynski
68bc8edaae
Merge pull request #1263 from matrix-org/t3chguy/fix_editing
...
Fix editing of unsent messages by waiting for actual event id
2020-03-17 13:00:55 +00:00
Zoe
7ec339985a
a crypto.keySignatureUploadFailure event reported the wrong source
2020-03-17 11:42:03 +00:00
Michael Telatynski
43889cfb31
use async/await instead
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-03-17 11:14:25 +00:00
Bruno Windels
9e4e14802d
Merge pull request #1264 from matrix-org/bwindels/fixolmapierror
...
Fix: ensureOlmSessionsForDevices parameter format
2020-03-17 11:08:23 +00:00
Bruno Windels
9bebb22746
devicesByUser should be userId => array of devices
2020-03-17 09:51:28 +01:00
Michael Telatynski
53cb3ca79b
return the additional promise to simplify the rejection chain
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-03-16 12:23:13 +00:00
Michael Telatynski
68526284f1
fix rejection handling
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-03-16 10:34:39 +00:00
Zoe
68cebc7ff9
If a key upload fails, throw an error and emit an event ( #1254 )
2020-03-16 10:24:31 +00:00
Michael Telatynski
38286b74e3
tidy up
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-03-16 10:10:22 +00:00
Michael Telatynski
86f56082f0
Make use of scheduler instead of an additional promise
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-03-16 10:09:17 +00:00
Michael Telatynski
e87bbfc535
Fix editing of unsent messages by waiting for actual event id
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-03-16 09:29:37 +00:00
Bruno Windels
9051edad37
Merge pull request #1258 from matrix-org/bwindels/nullcheckonreceipts
...
Fix: prevent error being thrown during sync in some cases
2020-03-12 17:09:10 +00:00
J. Ryan Stinnett
c204812d9c
Merge pull request #1259 from matrix-org/jryans/verified-to-bool
...
Force `is_verified` for key backups to bool and fix computation
2020-03-12 15:39:26 +00:00
J. Ryan Stinnett
3b7def880f
Check key backup trust for the right user ID
...
This corrects the key backup trust computation so that we use the user ID for
the device we're checking inside of always using the client's main user ID,
which would always resulted in false for other people.
Fixes https://github.com/vector-im/riot-web/issues/12693
2020-03-12 14:47:28 +00:00
J. Ryan Stinnett
e5ec2f03c2
Convert trustedLocally to a bool in all cases
...
This ensure we always have a boolean value, even when device is null.
Part of https://github.com/vector-im/riot-web/issues/12693
2020-03-12 14:21:46 +00:00
Bruno Windels
a1b3e8055f
check if push actions has a tweaks object
2020-03-12 12:59:43 +01:00
Bruno Windels
b66a1d30a0
method for legacy single device verification, returning a verification request rather than a verifier
2020-03-11 15:53:38 +01:00
Hubert Chathi
86304fd037
Merge pull request #1252 from matrix-org/uhoreg/megolm_speed
...
refactor megolm encryption to improve perceived speed
2020-03-10 20:09:41 -04:00
Hubert Chathi
04387e78cc
some cleanups
2020-03-10 15:56:33 -04:00
Travis Ralston
2bfc44b947
Merge pull request #1253 from matrix-org/travis/remove-v1-identity
...
Remove v1 identity server fallbacks
2020-03-10 09:30:22 -06:00
Bruno Windels
33941eb37b
Merge pull request #1251 from matrix-org/bwindels/altaliasesforname
...
Use alt_aliases instead of local ones for room names
2020-03-10 12:42:50 +00:00
J. Ryan Stinnett
0a45559276
Merge pull request #1250 from matrix-org/jryans/xsign-slow-login
...
Upload cross-signing key signatures in the background
2020-03-10 11:07:45 +00:00
Travis Ralston
800441e0ed
Appease the linter
2020-03-09 17:10:37 -06:00
Travis Ralston
95164d08d5
Remove v1 identity server fallbacks
...
Fixes https://github.com/vector-im/riot-web/issues/10443
**Review with https://github.com/matrix-org/matrix-react-sdk/pull/4191 **
2020-03-09 17:06:10 -06:00
Hubert Chathi
98d955ef1f
refactor megolm encryption to improve perceived speed
...
- allow applications to pre-send decryption keys before the message is sent
- establish new olm sessions with a shorter timeout first, and then re-try in
the background with a longer timeout without blocking message sending
2020-03-09 18:38:18 -04:00
Bruno Windels
31d2f0135b
use alt aliases instead of local ones for room names
2020-03-09 17:13:50 +01:00
J. Ryan Stinnett
c02928f294
Upload cross-signing key signatures in the background
...
At the moment, uploading cross-signing key signatures is a slow process that can
potentially take many minutes (!) for large accounts / slow servers. This
changes to do the bootstrapping related versions of this in the background.
Note that key signature uploads for interactive flows like verification are
still blocking for now.
Fixes https://github.com/vector-im/riot-web/issues/12223
2020-03-09 15:08:14 +00:00
J. Ryan Stinnett
951fff45e6
Skip device verif upgrades when callback not present
...
This skips the upgrade when the upgrade callback is not present (which is
expected as no one sets it currently). This adds logging for around the upgrade
process.
2020-03-09 15:03:02 +00:00
J. Ryan Stinnett
4fdd817ff5
Add logging around key change post-processing
2020-03-09 14:46:10 +00:00
J. Ryan Stinnett
b5eea01848
Fix secret sharing names to match spec
...
When sharing keys, we should use `m.cross_signing` prefix.
Part of https://github.com/vector-im/riot-web/issues/12661
2020-03-09 13:40:02 +00:00
Bruno Windels
4b9bc67cb6
remove crypto.verification.start event
...
as it is not used anymore by the react-sdk
2020-03-06 16:48:44 +01:00
Zoe
936ef4116b
For self-verifications, also request keys from the other device ( #1245 )
...
* For self-verifications, also request keys from the other device
* removed some XXX's so the editor doesn't think it's three issues
* add methods to access key cache callbacks
2020-03-06 09:56:56 +00:00
J. Ryan Stinnett
4c08e126ca
Fix regression in key backup request params
...
This converts the cross-signing trust to a boolean as required by the
homeserver.
Regressed by https://github.com/vector-im/riot-web/issues/12599
Fixes https://github.com/vector-im/riot-web/issues/12618
2020-03-05 12:17:42 +00:00
J. Ryan Stinnett
bc53f8fdec
Merge pull request #1244 from matrix-org/jryans/xsign-key-backup-verif
...
Use cross-signing trust to mark backups verified
2020-03-03 18:03:46 +00:00
J. Ryan Stinnett
abaf71418e
Use cross-signing trust to mark backups verified
...
This changes to cross-signing trust as well as local trust when we decide
whether to tell the homeserver a session of room keys is verified.
Fixes https://github.com/vector-im/riot-web/issues/12599
2020-03-03 15:52:38 +00:00
J. Ryan Stinnett
c96a906b39
Check both cross-signing and local trust for key sharing
...
When sharing room keys with our own devices, this ensure we check both
cross-signing and local trust.
Fixes https://github.com/vector-im/riot-web/issues/12596
2020-03-03 15:12:40 +00:00
Zoe
3a4c72ac08
actually, returning is unnecessary
2020-03-02 14:46:26 +00:00
Zoe
6d3f0f653b
there's some days that the linter and i, we just really don't see eye-to-eye
2020-03-02 14:38:24 +00:00
Zoe
81d3534569
added return back
2020-03-02 13:06:13 +00:00
Zoe
c54922dba3
Fixed up tests to match new way that crypto stores are created
2020-03-02 12:51:47 +00:00
Zoe
a4ed3d97fc
Merge pull request #1235 from matrix-org/foldleft/12299-local-ssk
...
Store USK and SSK locally
2020-03-02 09:52:44 +00:00
Travis Ralston
03752ab60c
Merge pull request #1236 from matrix-org/travis/unpadded-qr-codes
...
Use unpadded base64 for QR code secrets
2020-02-28 10:20:57 -07:00
Bruno Windels
7203542cfd
Merge pull request #1239 from matrix-org/bwindels/dontrequiredoneforselfverif
...
Don't require .done event for finishing self-verification
2020-02-28 15:16:09 +00:00