diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index a34a67def..c567fe070 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -587,15 +587,17 @@ define([ var myId = getId(); content.locks[myId] = msg; oldLocks = JSON.parse(JSON.stringify(content.locks)); - // Answer to our onlyoffice - send({ - type: "getLock", - locks: getLock() - }); // Remove old locks deleteOfflineLocks(); // Commit APP.onLocal(); + APP.realtime.onSettle(function () { + // Answer to our onlyoffice + send({ + type: "getLock", + locks: getLock() + }); + }); }; var parseChanges = function (changes) {