Merge pull request #1701 from sharelatex/bg-send-last-version

send last version to docupdater

GitOrigin-RevId: fab3415fdb1f37982d8089a9d0b35fd06f7459ae
This commit is contained in:
Brian Gough 2019-04-16 09:23:11 +01:00 committed by sharelatex
parent d82f679fd7
commit f3960db1ad

View file

@ -1304,7 +1304,9 @@ define(['ace/ace'], function () {
this.emit('flipped_pending_to_inflight');
// console.log "SENDING OP TO SERVER", @inflightOp, @version
return this.connection.send({ doc: this.name, op: this.inflightOp, v: this.version });
var lastVersion = this.__lastVersion;
this.__lastVersion = this.version;
return this.connection.send({ doc: this.name, op: this.inflightOp, v: this.version, lastV: lastVersion});
}
// Submit an op to the server. The op maybe held for a little while before being sent, as only one