Bruno Windels
8f62703bf2
fix type check in migration code
2020-06-05 13:38:15 +02:00
Bruno Windels
6dedae2e4d
Revert "remove key backup format migration"
...
This reverts commit 8d81240c58 .
2020-06-05 11:23:04 +02:00
Michael Telatynski
c525a19df5
Merge pull request #1394 from matrix-org/t3chguy/e2eedefault
...
Add js-sdk mechanism for polling client well-known for config
2020-06-03 10:47:10 +01:00
Michael Telatynski
a987a31667
Merge pull request #1388 from matrix-org/dbkr/timeouts
...
Fix verification request timeouts to match spec
2020-06-03 10:41:15 +01:00
Michael Telatynski
10329c3436
rename _clientWellKnownInterval to _clientWellKnownIntervalID
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-03 10:26:46 +01:00
Travis Ralston
29f10bcd44
Merge pull request #1391 from matrix-org/hs/drop-presence-list
...
Drop presence list methods
2020-06-02 19:50:12 -06:00
Travis Ralston
76da708352
Call the callback on cached
2020-06-02 14:19:41 -06:00
Travis Ralston
145f01ff2d
Batch up URL previews to prevent excessive requests
...
Cache expiration is still not implemented here.
2020-06-02 13:25:37 -06:00
J. Ryan Stinnett
bebeec7d84
Merge pull request #1304 from MTRNord/fix-register-auth-with-new-spec
...
Make auth argument in the register request compliant with r0.6.0
2020-06-02 10:13:57 +01:00
Michael Telatynski
18b1e00875
Add js-sdk mechanism for polling client well-known for config
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-06-01 22:22:01 +01:00
Travis Ralston
73f8867a6f
Send the wrong auth params with the right auth params
...
Followon from https://github.com/matrix-org/matrix-react-sdk/pull/4667
2020-06-01 09:08:58 -06:00
Will Hunt
d021498fa9
Drop presence lists
2020-06-01 11:29:06 +01:00
Michael Telatynski
429550ca3e
fix thing which got missed in the revert
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:54:08 +01:00
Michael Telatynski
2a6d8c2b1d
revert to previous observeOnly behaviour
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:34:19 +01:00
Michael Telatynski
01c9159830
clean up
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:17:22 +01:00
Michael Telatynski
3b3ed5159c
Implement verification request timeout as per the spec
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-29 13:10:25 +01:00
David Baker
636661dd45
WIP code for https://github.com/vector-im/riot-web/issues/12430
2020-05-29 09:53:03 +01:00
Hubert Chathi
0e6758ccbc
more unit test fixes
2020-05-27 23:21:15 -04:00
Hubert Chathi
c81f11df0a
encrypt/decrypt cached private keys with pickle key
2020-05-27 19:34:28 -04:00
Travis Ralston
f0fa249d36
Request fresh flows on the initial registration request
2020-05-27 13:16:10 -06:00
Travis Ralston
8f72197817
Merge branch 'develop' into fix-register-auth-with-new-spec
2020-05-27 12:14:42 -06:00
Hubert Chathi
1556ac84da
add a pickle key option to the client
2020-05-27 12:57:00 -04:00
Sorunome
b1a882ea79
Fix replying to key share requests
...
This check was meant to filter out key sharing requests from ourselves. Accidentally, it filtered out sharing requests from anyone *but* ourselves.
2020-05-26 13:04:31 +02:00
Michael Telatynski
9d6888cf74
Fix getVersion warning saying undefined room
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-05-22 14:21:51 +01:00
David Baker
a4a7097c10
Merge pull request #1379 from matrix-org/dbkr/combine_default_rules_processing
...
Combine the two places we processed client-level default push rules
2020-05-21 15:11:46 +01:00
David Baker
cf2b058e7c
Update comment on default override rules
2020-05-21 10:06:12 +01:00
Hubert Chathi
048d7a9b63
Merge pull request #1378 from matrix-org/uhoreg/fix_mac_check
...
make MAC check robust against unpadded vs padded base64 differences
2020-05-20 12:05:35 -04:00
David Baker
d6e37d0288
Combine the two places we processed client-level default push rules
...
We did this in two places: updated existing rules when the rules
were stored and then added new ones every time we computed push
action for an event. Just do both when the rules are saved.
2020-05-20 14:52:37 +01:00
Bruno Windels
3cd562fa96
Merge pull request #1375 from matrix-org/bwindels/remove-keybackup-format-migration
...
Remove key backup format migration
2020-05-20 08:05:28 +00:00
Hubert Chathi
ebdff505eb
make MAC check robust against unpadded vs padded base64 differences
2020-05-15 16:52:53 -04:00
Bruno Windels
8d81240c58
remove key backup format migration
2020-05-15 12:37:41 +02:00
Hubert Chathi
bdadcd4532
support new key agreement method for SAS
2020-05-14 16:14:45 -04:00
Bruno Windels
7b173f4c74
don't sign 4S keys anymore
2020-05-13 10:38:03 +02:00
Bruno Windels
d49eb0bbc4
remove upgrade path from asym to sym 4S algorithm
2020-05-13 10:38:03 +02:00
Bruno Windels
bc32faf467
don't sign/verify 4s key with cross signing master key anymore
2020-05-12 14:49:20 +02:00
Bruno Windels
74a4dfeb67
remove support for asym 4s enc
2020-05-12 14:29:54 +02:00
David Baker
cb7e1a9d82
Merge pull request #1367 from matrix-org/dbkr/increase_olm_second_phase_timeout
...
Increase timeout for 2nd phase of Olm session creation
2020-05-01 18:32:25 +01:00
David Baker
3c9dfc195e
Increase timeout for 2nd phase of Olm session creation
...
The timeouts on the two phases of olm session creation are 2 and 10
seconds respectively, so sessions will fail if servers take more
than 10s to respond. Now that we have two phases, we can afford to
wait longer on the second one because the user's isn't waiting for
it to finish before the message will send, so increase it to 30s
so servers have more of a chance to respond.
2020-05-01 18:25:25 +01:00
David Baker
d699e98346
Add logging on decryption retries
...
For https://github.com/vector-im/riot-web/issues/13473
2020-05-01 17:36:49 +01:00
David Baker
4946b55c21
lint
2020-05-01 15:13:02 +01:00
David Baker
ad7d7154f4
Emit event when a trusted self-key is stored
...
This will cause our own user trust status to change, so emit an
event to say so.
2020-05-01 15:01:13 +01:00
Zoe
e5b6a9f8cb
Merge pull request #1352 from matrix-org/foldleft/12252-large-err
...
Customize error payload for oversized messages
2020-05-01 09:44:43 +01:00
Zoe
04f27d36ef
Update src/crypto/OlmDevice.js
...
Co-authored-by: Travis Ralston <travpc@gmail.com >
2020-05-01 09:40:11 +01:00
J. Ryan Stinnett
683fc98fdc
Merge pull request #1363 from matrix-org/jryans/key-backup-network-fail
...
Return null for key backup state when we haven't checked yet
2020-04-30 17:21:09 +01:00
J. Ryan Stinnett
c303e83444
Return null for key backup state when we haven't checked yet
...
This allows distinguishing the "unknown" case from "not present".
Part of https://github.com/vector-im/riot-web/issues/13404
2020-04-30 15:40:27 +01:00
J. Ryan Stinnett
ae5a40d686
Only consider key backup checked in error if 404
...
Other error codes are likely to mean we never actually reached the server at
all, so we should not consider that as checked.
Part of https://github.com/vector-im/riot-web/issues/13404
2020-04-30 15:22:50 +01:00
Zoe
409b7068bb
Merge pull request #1351 from matrix-org/foldleft/13167-spinner-progress
...
Added a progressCallback for backup key loading
2020-04-30 14:09:16 +01:00
Zoe
f2a12c7154
satisfy linter 2, now with more self-hatred
2020-04-30 14:06:20 +01:00
Zoe
efac2eac07
satisfy the linter
2020-04-30 12:04:29 +01:00
David Baker
f85ec08886
Merge pull request #1360 from matrix-org/dbkr/sessions_there_on_login_are_old
...
Add initialFetch param to willUpdateDevices / devicesUpdated
2020-04-29 17:42:12 +01:00