mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #1701 from sharelatex/bg-send-last-version
send last version to docupdater GitOrigin-RevId: fab3415fdb1f37982d8089a9d0b35fd06f7459ae
This commit is contained in:
parent
d82f679fd7
commit
f3960db1ad
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue