From b7a492a11b6b7d9fb19a1f34f02c081ae8bd5dbf Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 7 Jan 2021 16:57:52 +0100 Subject: [PATCH] Fix race condition between setPadTitle and drive sync --- www/common/outer/async-store.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index f4fa534bb..9a1d25cc2 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -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