mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Salvage draft in case of errors
This is know to happen due to "Exception while computing database live data"
This commit is contained in:
@@ -2614,7 +2614,10 @@ public class FragmentCompose extends FragmentBase {
|
||||
null);
|
||||
}
|
||||
} else {
|
||||
String previous = Helper.readText(draft.getFile(context));
|
||||
File file = draft.getFile(context);
|
||||
if (!file.exists())
|
||||
Helper.writeText(file, body);
|
||||
String previous = Helper.readText(file);
|
||||
if (!body.equals(previous) ||
|
||||
plain_only != (draft.plain_only != null && draft.plain_only)) {
|
||||
dirty = true;
|
||||
|
||||
Reference in New Issue
Block a user