Share the correct index in onlyoffice messages

pull/1/head
yflory 6 years ago
parent 7d0f34a684
commit 2ac176eeec

@ -384,12 +384,12 @@ define([
// XXX lock // XXX lock
send({ send({
type: "unSaveLock", type: "unSaveLock",
index: -1, index: ooChannel.cpIndex,
}); });
rtChannel.sendMsg({ rtChannel.sendMsg({
type: "saveChanges", type: "saveChanges",
changes: parseChanges(obj.changes), changes: parseChanges(obj.changes),
changesIndex: 2, changesIndex: ooChannel.cpIndex || 0,
locks: [], // XXX take from userdoc? locks: [], // XXX take from userdoc?
excelAdditionalInfo: null excelAdditionalInfo: null
}, null, function (err, hash) { }, null, function (err, hash) {

Loading…
Cancel
Save