Fix race condition between setPadTitle and drive sync

pull/1/head
yflory 4 years ago
parent 1f16b525d3
commit b7a492a11b

@ -1038,6 +1038,7 @@ define([
});
};
Store.setPadTitle = function (clientId, data, cb) {
onReadyEvt.reg(function () {
var title = data.title;
var href = data.href;
var channel = data.channel;
@ -1193,6 +1194,8 @@ define([
onSync(teamId, waitFor());
});
}).nThen(cb);
});
};
// Filepicker app

Loading…
Cancel
Save