Hubert Chathi
bc97e7a5ea
don't trust keys megolm received from backup for verifying the sender
2020-06-15 17:47:25 -04: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
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
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
Will Hunt
d021498fa9
Drop presence lists
2020-06-01 11:29:06 +01:00
Hubert Chathi
1556ac84da
add a pickle key option to the client
2020-05-27 12:57:00 -04:00
Bruno Windels
8d81240c58
remove key backup format migration
2020-05-15 12:37:41 +02:00
Bruno Windels
74a4dfeb67
remove support for asym 4s enc
2020-05-12 14:29:54 +02: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
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
David Baker
1451fcb040
Add initialFetch param to willUpdateDevices / devicesUpdated
...
This indicates whether the device database is being populated initially
2020-04-29 17:01:50 +01:00
Zoe
4986f3c2ca
docs
2020-04-29 16:55:27 +01:00
David Baker
a516f06946
Merge pull request #1354 from matrix-org/dbkr/another_round_of_toast
...
Add crypto.willUpdateDevices event and make getStoredDevices/getStoredDevicesForUser synchronous
2020-04-29 12:09:11 +01:00
Michael Telatynski
3bb1a6336b
Merge pull request #1350 from matrix-org/t3chguy/redaction_redesign
...
Fix sender of local echo events in unsigned redactions
2020-04-29 11:17:28 +01:00
David Baker
f053cf1fdb
Add crypto.willUpdateDevices event and make getStoredDevices/getStoredDevicesForUser synchronous
...
Add an event fired before devices are updated, so apps can monitor
changes in devices by observing the state before and after.
BREAKING CHANGE:
Make getStoredDevices/getStoredDevicesForUser synchronous so they
can safely be called from the event listener without racing with
the data being updated. They didn't do any async work so didn't need
to be async.
Add doc for crypto.devicesUpdated
2020-04-28 18:31:04 +01:00
Zoe
875f9ca388
Added a progressCallback for backup key loading
2020-04-28 11:28:39 +01:00
Michael Telatynski
7152ece70a
Fix sender of local echo events in unsigned redactions
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2020-04-27 23:52:22 +01:00
Bruno Windels
6b4fefc123
move fn to http-api and add jsdoc
2020-04-23 15:32:40 +02:00
Bruno Windels
78b8b36a87
retry PUT account data requests
2020-04-23 13:37:56 +02:00
Bruno Windels
4a699fe6a7
Merge pull request #1340 from matrix-org/bwindels/fixfilterlookup
...
Fix: handle filter not found
2020-04-21 14:13:33 +00:00
Bruno Windels
6f6520ed0f
Fix unknown filters returning 400 rather than 404
...
This made getFilter in sync retrying continuously
I also refactored getOrCreateFilter to use await
2020-04-21 15:54:50 +02:00
David Baker
0958917317
Make getAccountDataFromServer return null if not found
...
Callers assume that if the account data isn't there, the method will
return null rather than throw an exception. This meant that this only
actually worked in these cases when the sync had completed and it was
using the locally stored account data, so this ceased to be a
problem in practice when we made it wait for the initial sync to finish
before entering the security setup flow.
Fixes https://github.com/vector-im/riot-web/issues/13169
2020-04-21 14:28:10 +01:00
Michael Kohler
4342ee6d4a
Document setRoomEncrption not modifying room state ( fixes #905 )
2020-04-18 19:49:05 +02:00
Bruno Windels
f56ce29210
method is on crypto
2020-04-17 13:51:12 +02:00
Bruno Windels
d59d62f96a
Merge pull request #1318 from matrix-org/bwindels/fixindexernotifs
...
Fix: prevent spurious notifications from indexer
2020-04-15 16:50:18 +00:00
Bruno Windels
8a460c2368
fix jsdoc
2020-04-15 18:33:55 +02:00
Bruno Windels
6f60183316
allow creating event mappers that map events whose events are not reemitted
2020-04-15 17:08:25 +02:00
J. Ryan Stinnett
1b8f6d1739
Always create our own user object
...
This ensures our own user object is always available for tasks like
verification, even if you aren't in any rooms.
Fixes https://github.com/vector-im/riot-web/issues/13165
2020-04-14 16:02:00 +01:00
Hubert Chathi
df38fde336
apply changes from code review
2020-04-09 11:48:58 -04:00
Hubert Chathi
ca7b49d209
fix incorrect backup key format in SSSS
2020-04-09 00:08:17 -04:00
Hubert Chathi
51bde23207
Merge branch 'develop' into uhoreg/check_sssss_passphrase
2020-03-31 10:41:39 -04:00
J. Ryan Stinnett
4a965f5408
Convert secret storage key creation to object
2020-03-31 10:45:02 +01:00
Hubert Chathi
e6edee863f
add ability to check symmetric SSSS key before we try to use it
2020-03-30 17:25:03 -04:00
Travis Ralston
d69af72c7a
Merge pull request #1277 from Awesome-Technologies/develop
...
Allow guests to fetch TURN servers
2020-03-26 09:33:41 -06:00
David Baker
bdba61975b
Merge pull request #1285 from matrix-org/dbkr/trust_cross_signing_flag
...
Add a flag for whether cross signing signatures are trusted
2020-03-26 12:19:08 +00:00
David Baker
6ec7b5d404
Add a flag for whether cross signing signatures are trusted
2020-03-25 18:36:08 +00:00
Zoe
9372790666
remove unnecessary promise
2020-03-25 11:47:59 +00:00
Michael Albert
c6eb1525b5
Allow guests to fetch TURN servers
...
Signed-off-by: Michael Albert <michael.albert@awesome-technologies.de >
2020-03-24 18:04:26 +01:00
Zoe
02216b15e5
Merge pull request #1281 from matrix-org/foldleft/12704-key-requests
...
Functions to cache session backups key automatically
2020-03-24 15:32:09 +00:00
David Baker
42efdf1e0a
Merge pull request #1279 from matrix-org/dbkr/unify_cross_signing_checks
...
Add function for checking cross-signing is ready
2020-03-24 13:34:19 +00:00
David Baker
465f9e634e
Merge pull request #1272 from matrix-org/dbkr/symmetric-ssss-migrate
...
Migration to symmetric SSSS
2020-03-24 13:12:17 +00:00
David Baker
509e4b337d
Update for new name
2020-03-24 13:01:46 +00:00
Hubert Chathi
944d39c836
add some comments
2020-03-23 16:51:44 -04:00
David Baker
7f6e223c0c
Add function for checking cross-signing is ready
...
Aggregate function that checks the various things are in place for
cross-signing to work.
2020-03-23 18:34:16 +00:00