You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-18 05:42:00 +03:00
replace q method calls with bluebird ones
``` find src spec -name '*.js' | xargs perl -i -pe 's/q\.(all|defer|reject|delay|try)\(/Promise.$1(/' ```
This commit is contained in:
@@ -15,7 +15,7 @@ const MatrixEvent = sdk.MatrixEvent;
|
||||
* @return {Promise} Resolves once the client has emitted a SYNCING event
|
||||
*/
|
||||
module.exports.syncPromise = function(client) {
|
||||
const def = q.defer();
|
||||
const def = Promise.defer();
|
||||
const cb = (state) => {
|
||||
if (state == 'SYNCING') {
|
||||
def.resolve();
|
||||
|
Reference in New Issue
Block a user