|
|
|
@ -685,7 +685,7 @@ const handleGetHistory = function (Env, Server, seq, userId, parsed) {
|
|
|
|
|
|
|
|
|
|
// If we're asking for a specific version (lastKnownHash) but we receive an
|
|
|
|
|
// ENOENT, this is not a pad creation so we need to abort.
|
|
|
|
|
if (err && err.code === 'ENOENT' && lastKnownHash) {
|
|
|
|
|
if (err && err.code === 'ENOENT' && lastKnownHash) { // XXX && lastKnownHash !== -1
|
|
|
|
|
/*
|
|
|
|
|
This informs clients that the pad they're trying to load was deleted by its owner.
|
|
|
|
|
The user in question might be reconnecting or might have loaded the document from their cache.
|
|
|
|
|