Test onlyoffice lock

pull/1/head
yflory 5 years ago
parent 9345747d19
commit 5e463258eb

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

Loading…
Cancel
Save