[bug] Show warning when opening from forgotten

This commit is contained in:
Sergey Konovalov
2025-12-18 16:48:40 +03:00
parent 30535bda9a
commit aeffa98ab3
2 changed files with 4 additions and 1 deletions

View File

@ -250,6 +250,7 @@ exports.VKEY_TIME_INCORRECT = -125;
exports.EDITOR_CHANGES = -160;
exports.PASSWORD = -180;
exports.FORCED_VIEW_MODE = -200;
exports.FILE_NOT_ASSEMBLED = -201;
//Quorum queues internally only support two priorities: high and normal.
//Messages without a priority set will be mapped to normal as will priorities 0 - 4.

View File

@ -3224,7 +3224,9 @@ exports.install = function (server, app, callbackFunction) {
//check forgotten file
const forgotten = yield storage.listObjects(ctx, docId, tenForgottenFiles);
hasForgotten = forgotten.length > 0;
ctx.logger.debug('endAuth hasForgotten %s', hasForgotten);
if (hasForgotten) {
sendDataWarning(ctx, conn, constants.FILE_NOT_ASSEMBLED, 'File not assembled');
}
}
}