|
|
@ -2280,10 +2280,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|
|
|
db.beginTransaction();
|
|
|
|
db.beginTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
EntityMessage draft = db.message().getMessage(id);
|
|
|
|
EntityMessage draft = db.message().getMessage(id);
|
|
|
|
EntityIdentity primary = db.identity().getPrimaryIdentity();
|
|
|
|
if (draft != null) {
|
|
|
|
if (draft != null && primary != null) {
|
|
|
|
|
|
|
|
draft.folder = EntityFolder.getOutbox(context).id;
|
|
|
|
draft.folder = EntityFolder.getOutbox(context).id;
|
|
|
|
draft.identity = primary.id;
|
|
|
|
|
|
|
|
db.message().updateMessage(draft);
|
|
|
|
db.message().updateMessage(draft);
|
|
|
|
|
|
|
|
|
|
|
|
EntityOperation.queue(context, draft, EntityOperation.SEND);
|
|
|
|
EntityOperation.queue(context, draft, EntityOperation.SEND);
|
|
|
|