You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
q(...) -> Promise.resolve
```
find src spec -name '*.js' |
xargs perl -i -pe 's/\bq(\([^(]*\))/Promise.resolve$1/'
```
This commit is contained in:
@@ -132,7 +132,7 @@ function MegolmEncryption(params) {
|
||||
// are using, and which devices we have shared the keys with. It resolves
|
||||
// with an OutboundSessionInfo (or undefined, for the first message in the
|
||||
// room).
|
||||
this._setupPromise = q();
|
||||
this._setupPromise = Promise.resolve();
|
||||
|
||||
// default rotation periods
|
||||
this._sessionRotationPeriodMsgs = 100;
|
||||
@@ -348,7 +348,7 @@ MegolmEncryption.prototype._shareKeyWithDevices = function(session, devicesByUse
|
||||
}
|
||||
|
||||
if (!haveTargets) {
|
||||
return q();
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
// TODO: retries
|
||||
|
||||
Reference in New Issue
Block a user