mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[bug] Show warning when opening from forgotten
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user