Suppress folder closed exception for operations

This commit is contained in:
M66B 2019-04-04 14:36:03 +02:00
parent a956cb8733
commit 6a2191a35c
1 changed files with 5 additions and 3 deletions

View File

@ -214,9 +214,11 @@ class Core {
Log.e(folder.name, ex); Log.e(folder.name, ex);
reportError(context, account, folder, ex); reportError(context, account, folder, ex);
db.operation().setOperationError(op.id, Helper.formatThrowable(ex)); if (!(ex instanceof FolderClosedException)) {
if (message != null) db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
db.message().setMessageError(message.id, Helper.formatThrowable(ex, true)); if (message != null)
db.message().setMessageError(message.id, Helper.formatThrowable(ex, true));
}
if (ex instanceof MessageRemovedException || if (ex instanceof MessageRemovedException ||
ex instanceof FolderNotFoundException || ex instanceof FolderNotFoundException ||