mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Added fail-safe
This commit is contained in:
@@ -4135,6 +4135,11 @@ public class FragmentCompose extends FragmentBase {
|
||||
else
|
||||
b = HtmlHelper.sanitizeCompose(context, body, true);
|
||||
|
||||
if (draft.revision == null) {
|
||||
draft.revision = 1;
|
||||
draft.revisions = 1;
|
||||
}
|
||||
|
||||
int revision = draft.revision; // Save for undo/redo
|
||||
if (dirty ||
|
||||
TextUtils.isEmpty(body) ||
|
||||
|
||||
Reference in New Issue
Block a user