From dbf94c864ed7928641a780e4428be25529a6ac15 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 15 Jul 2020 17:12:41 +0200 Subject: [PATCH] Add XXX --- www/common/onlyoffice/inner.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 6e138fcdc..7e9e9a77b 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -903,6 +903,10 @@ define([ return; } + // XXX + // If save lock, tell onlyoffice that it can't save now... + // if (content && content.saveLock] {} + // Send the changes content.locks = content.locks || {}; rtChannel.sendMsg({ @@ -915,6 +919,12 @@ define([ if (err) { return void console.error(err); } + // XXX + // If save lock, it means the sheet was locked for a checkpoint before + // our message was received! + // Add our message to our own queue to load it after the checkpoint reload + + if (pendingChanges[uid]) { clearTimeout(pendingChanges[uid]); delete pendingChanges[uid];