mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix issue when copying an OO document without history
This commit is contained in:
parent
2d10fe591a
commit
967d43f4ff
@ -2378,10 +2378,17 @@ const factory = (ApiConfig = {}, Sortify, UserObject, ProxyManager,
|
||||
var parsed = parse(msg);
|
||||
if (parsed[1] !== txid) { console.log('bad txid'); return; }
|
||||
if (parsed[0] === 'HISTORY_RANGE_ERROR') {
|
||||
cb({
|
||||
let err = parsed[2];
|
||||
if (err?.code === 'ENOENT') {
|
||||
completed = true;
|
||||
return void cb({
|
||||
messages: msgs,
|
||||
isFull: true
|
||||
});
|
||||
}
|
||||
return void cb({
|
||||
error: parsed[2]
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (parsed[0] === 'HISTORY_RANGE_END') {
|
||||
cb({
|
||||
|
||||
2
www/common/worker.bundle.min.js
vendored
2
www/common/worker.bundle.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user