Michael Telatynski
4a47867e49
Down to two test failures
2019-12-04 19:17:58 +00:00
Michael Telatynski
8a8109272a
fix undef3
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-12-02 23:45:12 +00:00
Michael Telatynski
710ac6847d
fix undef2
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-12-02 23:39:47 +00:00
Michael Telatynski
3a1de9fbdc
Rip out more bluebirds AGAIN
2019-12-02 22:34:46 +00:00
Michael Telatynski
6bba5ca25a
Rip out some more bluebird
2019-12-02 22:34:46 +00:00
Matthew Hodgson
fcbfaac1fd
Merge pull request #1090 from matrix-org/matthew/more_e2ee_logging
...
expand e2ee logging to better debug UISIs
2019-11-26 10:18:28 +00:00
Matthew Hodgson
2215087f96
expand e2ee logging to better debug UISIs
2019-11-26 01:17:12 +00:00
Michael Telatynski
32234ee7fc
Merge pull request #1087 from matrix-org/t3chguy/remove_bluebird_11
...
Remove Bluebird: phase 2
2019-11-26 00:03:22 +00:00
Michael Telatynski
bd8f8ef28d
Replace yet more deferreds
2019-11-25 11:28:09 +00:00
Michael Telatynski
3901a381cc
replace another couple of deferreds
2019-11-25 11:18:32 +00:00
Michael Telatynski
5e0ba9971c
nothing works anymore :((
2019-11-23 12:18:39 +00:00
David Baker
fa577c9475
Merge pull request #1086 from matrix-org/dbkr/fix_calls_in_e2e_rooms
...
Fix calls in e2e rooms
2019-11-22 17:48:33 +00:00
Bruno Windels
11a958b8ca
Merge pull request #1085 from matrix-org/bwindels/verif-toasts
...
Monitor verification request over DM as well
2019-11-22 16:39:07 +00:00
David Baker
d8337d703d
Use the right variable name
2019-11-22 15:59:36 +00:00
David Baker
adac0c353c
Fix calls in e2e rooms
...
Events will be decrypted after the sync event, so we were having
to wait until the next sync event before they got processed.
2019-11-22 15:56:06 +00:00
Bruno Windels
ca89b6e7a8
use adapter for to_device requests to have same api as for verif over DM
...
Riot doesn't fully implement to_device verifications, e.g.
it doesn't send a `request` but immediately sends a `start` event.
Because of this, `crypto.verification.request` doesn't get fired,
as that code path doesn't get triggered. This is why MatrixChat
in the react-sdk was listening for `crypto.verification.start`.
Verification over DM *does* send a `request` event first, so
to have the same API for both methods, we fake the request and
wrap the verifier in it.
2019-11-22 16:12:19 +01:00
David Baker
5262d716e4
Lint
2019-11-21 19:10:27 +00:00
David Baker
7addacba38
Always process call events in batches
...
We had a bunch of logic in place to suppress calls if the answer
or hangup had already arrived, but we only used it on startup.
This extends this logic to happen all the time, which means we'll
also do the same suppression if a call happenned while we were
offline.
2019-11-21 18:56:37 +00:00
David Baker
3a9832a8c6
Fix ringing chirp on loading
...
We have a heap of logic to do the right thing when a call event
arrives, eg. wait until the client is ready so we can see if there's
already been a hangup event before saying there's an incoming call.
Unfortunately it only waited until the client was prepared, not
until it was syncing, so any events that arrived from the server
in the catchup sync bypassed this logic altogether.
This was probably broken back when we introduced the sync accumulator,
since before then, "PREPARED" meant, "done initialsync" rather than
"loaded fake initialsync from storage".
Fixes https://github.com/vector-im/riot-web/issues/3572
2019-11-21 17:56:04 +00:00
Michael Telatynski
549b0f9313
Stop using Bluebird.delay and Bluebird promise::delay
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com >
2019-11-21 10:05:59 +00:00
J. Ryan Stinnett
5f02c4b5ad
Namespace default secret storage key methods
2019-11-18 15:19:18 +00:00
J. Ryan Stinnett
f93130a8a7
Add method to check whether cross-signing has keys
2019-11-18 12:32:39 +00:00
Travis Ralston
439abbcce9
Merge pull request #1071 from matrix-org/travis/new-deactivate
...
Check the right Synapse endpoint for determining admin capabilities
2019-11-15 09:17:12 -07:00
David Baker
ac91367801
Merge pull request #832 from matrix-org/dbkr/cross_signing
...
Cross Signing Support
2019-11-15 16:09:06 +00:00
David Baker
56261263f5
Rename backup_password & functions
...
Not Just For Backups Anymore
2019-11-15 15:54:43 +00:00
David Baker
04b57bbe9d
Remove ghost of some old code
2019-11-15 15:27:02 +00:00
David Baker
5224ef4b1f
This is now implemented
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:56:05 +00:00
David Baker
fa2e669eda
More jsdoc updates
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:44:08 +00:00
David Baker
6d0237ec71
This now returns DeviceTrustLevel too
2019-11-15 14:42:26 +00:00
David Baker
97dff4640a
Capitalise jsdoc
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:41:12 +00:00
David Baker
f2f205f9bd
Typo
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-15 14:38:44 +00:00
David Baker
e541b96a71
Change check{User|Device}Trust interfaces
...
...to return objects with functions rather than a bitmask
2019-11-15 12:15:13 +00:00
Travis Ralston
904a2f466e
Maybe use the right user ID too
2019-11-14 11:54:13 -07:00
Travis Ralston
bad48da11a
Check the right Synapse endpoint for determining admin capabilities
2019-11-14 11:50:06 -07:00
David Baker
7ca09ad749
tariling space
2019-11-14 12:18:07 +00:00
David Baker
291133beb9
Fix comment
2019-11-14 12:11:07 +00:00
David Baker
0048cbef08
Mark cross siging / SSSS APIs as unstable
...
also add missing jsdoc
2019-11-14 11:51:44 +00:00
David Baker
d5d8032b5b
Camelcase event names
...
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com >
2019-11-14 11:04:37 +00:00
David Baker
26aa3d3ce7
Support default keys
2019-11-13 14:09:40 +00:00
David Baker
4c651c15ea
Convert secrets events to callbacks too
2019-11-11 20:01:11 +00:00
David Baker
6f8d9c4693
Rename getPrivateKeys to getCrossSigningKeys
2019-11-11 16:45:01 +00:00
David Baker
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
J. Ryan Stinnett
20f5c3ea28
Use stable API prefix for 3PID APIs when supported
...
If the server advertises spec version r0.6.0, it must have the 3PID APIs
available under the stable API prefix.
Fixes https://github.com/vector-im/riot-web/issues/11246
2019-11-06 18:02:10 +00:00
David Baker
a571624e13
Typo
2019-11-01 10:46:43 +00:00
David Baker
74b649c04c
Typo
2019-11-01 10:45:41 +00:00
David Baker
3e2d845342
Merge remote-tracking branch 'origin/develop' into dbkr/cross_signing
2019-10-28 16:47:16 +00:00
David Baker
de1b545df1
lint
2019-10-28 15:42:42 +00:00
Hubert Chathi
e9908b1d97
fix the path in references to logger.js
2019-10-25 23:24:30 -04:00
Hubert Chathi
fffd2eb70a
Merge pull request #1050 from uhoreg/verification_in_dms
...
verification in DMs
2019-10-23 12:09:52 -04:00
Hubert Chathi
d8e8dddd25
initial implementation of verification in DMs
2019-10-08 15:44:51 -04:00