mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Unhide message on failure
This is faster than fetching again
This commit is contained in:
parent
c28a6669fd
commit
763f084a4a
1 changed files with 22 additions and 20 deletions
|
@ -3006,7 +3006,8 @@ class Core {
|
|||
}
|
||||
|
||||
if ((message.size != null && message.size < maxSize) ||
|
||||
(MessageClassifier.isEnabled(context)) && folder.auto_classify_source) {
|
||||
(MessageClassifier.isEnabled(context)) && folder.auto_classify_source)
|
||||
try {
|
||||
String body = parts.getHtml(context);
|
||||
File file = message.getFile(context);
|
||||
Helper.writeText(file, body);
|
||||
|
@ -3017,8 +3018,6 @@ class Core {
|
|||
HtmlHelper.getPreview(body),
|
||||
parts.getWarnings(message.warning));
|
||||
MessageClassifier.classify(message, folder, null, context);
|
||||
if (!message.ui_hide)
|
||||
db.message().setMessageUiHide(message.id, false);
|
||||
|
||||
if (stats != null && body != null)
|
||||
stats.content += body.length();
|
||||
|
@ -3027,6 +3026,9 @@ class Core {
|
|||
|
||||
if (TextUtils.isEmpty(body) && parts.hasBody())
|
||||
reportEmptyMessage(context, state, account, istore);
|
||||
} finally {
|
||||
if (!message.ui_hide)
|
||||
db.message().setMessageUiHide(message.id, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue