No longer exists

This commit is contained in:
M66B 2023-09-13 20:50:01 +02:00
parent ac2f4ac6a8
commit 3c8336de2f
2 changed files with 13 additions and 2 deletions

View File

@ -2039,8 +2039,18 @@ class Core {
// Get message
Message imessage = ifolder.getMessageByUID(message.uid);
if (imessage == null)
throw new MessageRemovedException();
if (imessage == null) {
File file = message.getFile(context);
Helper.writeText(file, "");
db.message().setMessageContent(message.id,
true,
null,
null,
null,
context.getString(R.string.title_not_existing));
return;
//throw new MessageRemovedException();
}
MessageHelper helper = new MessageHelper((MimeMessage) imessage, context);
MessageHelper.MessageParts parts = helper.getMessageParts();

View File

@ -2230,6 +2230,7 @@
<string name="title_fetching_again">Fetching message again from the server</string>
<string name="title_go_back">Go back</string>
<string name="title_global_default">Use global default</string>
<string name="title_not_existing">This message no longer exists on the mail server</string>
<string name="title_conversation_actions">Actions</string>
<string name="title_conversation_action_reply">Reply with: \'%1$s\'</string>