Unhide message on failure

This is faster than fetching again
pull/191/head
M66B 4 years ago
parent c28a6669fd
commit 763f084a4a

@ -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…
Cancel
Save