mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-08 18:13:24 +02:00
Fixed saving drafts with selected identity
This commit is contained in:
@@ -1054,7 +1054,9 @@ public class FragmentCompose extends FragmentEx {
|
||||
EntityOperation.queue(db, draft, EntityOperation.MOVE, trash.id);
|
||||
|
||||
} else if (action == R.id.action_save) {
|
||||
if (ato == null && acc == null && abcc == null &&
|
||||
EntityIdentity primary = db.identity().getPrimaryIdentity(draft.account);
|
||||
if ((primary == null || draft.identity == primary.id) &&
|
||||
ato == null && acc == null && abcc == null &&
|
||||
TextUtils.isEmpty(subject) &&
|
||||
TextUtils.isEmpty(body) &&
|
||||
db.attachment().getAttachmentCount(draft.id) == 0)
|
||||
|
||||
Reference in New Issue
Block a user