Skip adding drafts to be encrypted to remote folder

This commit is contained in:
M66B 2019-10-30 08:43:57 +01:00
parent 775fb7c984
commit f4e4784f73
1 changed files with 5 additions and 3 deletions

View File

@ -2514,7 +2514,8 @@ public class FragmentCompose extends FragmentBase {
}
}
EntityOperation.queue(context, data.draft, EntityOperation.ADD);
if (data.draft.encrypt == null || !data.draft.encrypt)
EntityOperation.queue(context, data.draft, EntityOperation.ADD);
} else {
if (data.draft.content) {
File file = data.draft.getFile(context);
@ -2782,7 +2783,7 @@ public class FragmentCompose extends FragmentBase {
draft.ui_hide = ui_hide;
db.message().updateMessage(draft);
if (draft.content)
if (draft.content && (draft.encrypt == null || !draft.encrypt))
EntityOperation.queue(context, draft, EntityOperation.ADD);
}
@ -2962,7 +2963,8 @@ public class FragmentCompose extends FragmentBase {
action == R.id.action_redo ||
action == R.id.action_check) {
if (BuildConfig.DEBUG || dirty)
EntityOperation.queue(context, draft, EntityOperation.ADD);
if (draft.encrypt == null || !draft.encrypt)
EntityOperation.queue(context, draft, EntityOperation.ADD);
if (action == R.id.action_check) {
// Check data