mirror of https://github.com/M66B/FairEmail.git
Suppress folder closed exception for operations
This commit is contained in:
parent
a956cb8733
commit
6a2191a35c
|
@ -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 ||
|
||||||
|
|
Loading…
Reference in New Issue