1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-31 15:24:23 +03:00
Commit Graph

1429 Commits

Author SHA1 Message Date
2ce106382a Stop using Bluebird promise::isFulfilled()
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-21 10:01:16 +00:00
c57109c2f3 tidy up
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-20 21:16:11 +00:00
522640edd9 rip out lolex also
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-20 21:05:21 +00:00
5fc0629201 fix expect calls
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-20 20:19:54 +00:00
fd58957b06 migrate to jest from mocha+expect+istanbul
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-11-20 19:52:50 +00:00
d2ebc58c3c Use secret storage alg const in tests 2019-11-19 11:46:08 +00:00
5f02c4b5ad Namespace default secret storage key methods 2019-11-18 15:19:18 +00:00
d37ed9ff6f lint 2019-11-15 12:39:14 +00:00
e541b96a71 Change check{User|Device}Trust interfaces
...to return objects with functions rather than a bitmask
2019-11-15 12:15:13 +00:00
d9d65309b3 More s/cross-signing/crossSigning/ 2019-11-14 11:29:08 +00:00
7218e31a9c Sign & verify SSSS keys 2019-11-13 17:52:24 +00:00
1798f3921f Make setDeafultKeyId wait for event 2019-11-13 14:42:08 +00:00
26aa3d3ce7 Support default keys 2019-11-13 14:09:40 +00:00
c97a87d1f6 Throw if an unknown key is specified
It's probably important that the app knows if a secret isn't going
to be stored under one or more of the keys it thought it was going
to be stored under.

Also add a test to assert it.
2019-11-12 14:07:05 +00:00
4c651c15ea Convert secrets events to callbacks too 2019-11-11 20:01:11 +00:00
a98e6964ef Missed bits of callback renaming 2019-11-11 16:51:49 +00:00
03fe4afe32 lint 2019-11-07 15:20:07 +00:00
12627022d1 Convert sas verification test to callbacks 2019-11-07 15:18:16 +00:00
fabfe16d45 lint 2019-11-07 12:35:39 +00:00
a34758f938 Convert event interface to callbacks
Use options.cryptoCallbacks for things that require information
from the app rather than events, since events can have zero, one
or many listeners and the emitter doesn't know how many, so if
nobody's listening then we would have just waited forever for a
response.

Also a collection of other changes like renaming 'fu' to 'firstUse'
2019-11-07 12:31:44 +00:00
91df096698 Update tests 2019-11-01 14:10:16 +00:00
49588da73d Fix more tests 2019-10-29 19:39:31 +00:00
3e2d845342 Merge remote-tracking branch 'origin/develop' into dbkr/cross_signing 2019-10-28 16:47:16 +00:00
de1b545df1 lint 2019-10-28 15:42:42 +00:00
3bec28b2ff make other tests pass 2019-10-28 15:23:58 +00:00
8cad116dd7 Make tests pass
* Pass the http backend out of makeTestClients so we can tell it
   to expect queries and flush requests out
 * Change colons to dots in the key events
2019-10-28 14:56:35 +00:00
d8e8dddd25 initial implementation of verification in DMs 2019-10-08 15:44:51 -04:00
b004d1602d Remove deprecated authedRequestWithPrefix and requestWithPrefix
replacing as documented with authedRequest

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2019-07-29 12:25:38 +01:00
a8d200dd02 Merge pull request #993 from matrix-org/travis/sas-is-done
End the verification timer when verification is done
2019-07-11 08:20:30 -06:00
f80af68686 End the verification timer when verification is done
Fixes https://github.com/matrix-org/matrix-js-sdk/issues/980

This also improves cleanliness in the tests to cancel/terminate timers when needed.
2019-07-10 14:51:12 -06:00
fe4ac06f43 Use the correct media endpoints 2019-07-10 13:24:11 -06:00
a3c8eac38b Process ephemeral events outside timeline handling 2019-07-10 10:26:21 -06:00
7f8b9de560 offer to upgrade device verifications to cross-signing 2019-07-08 12:26:00 -04:00
761f22b63d minor cleanups 2019-07-08 12:25:28 -04:00
8d1d657c44 add unit test for backups signed by cross-signing key 2019-07-03 19:16:26 -04:00
1cae5e8b97 fix unit tests to match event name changes 2019-06-27 23:33:07 -04:00
07c2e34d87 Merge branch 'develop' into dbkr/cross_signing 2019-06-14 22:57:02 -04:00
811a98ad19 whitespace, newlines 2019-06-13 12:28:02 +02:00
b005b75331 comment typo
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-06-13 12:26:38 +02:00
a9f9e2cf35 comment typo
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
2019-06-13 12:26:38 +02:00
7d2f7fae45 fix tests 2019-06-13 12:26:38 +02:00
4c6fa89053 various cross-signing fixes and improvements 2019-06-12 11:47:12 -04:00
6f6e7ea921 verify cross-signing key with SAS 2019-06-05 15:27:31 -04:00
0c714ba4a1 some cleanups 2019-06-05 15:24:03 -04:00
6a77df7b41 Merge branch 'develop' into dbkr/cross_signing 2019-06-05 12:48:17 -04:00
26c1c6db3b Fix tests and populate the right IS validation object 2019-06-04 23:51:41 -06:00
4a9a1b40e9 initial implementation of secret storage and sharing 2019-06-04 15:04:45 -04:00
842ce30190 Fix lint error in login.spec.js 2019-05-31 09:54:47 +01:00
a0456dc430 Merge pull request #924 from jkasun/loglevel-extend
Extend loglevel logging for the whole project
2019-05-30 11:20:49 -06:00
95131c7658 add test for syncing trust on another user 2019-05-29 17:01:25 -04:00