mirror of https://github.com/M66B/FairEmail.git
Small fix
This commit is contained in:
parent
d1ec0dce7e
commit
2827e8abeb
|
@ -1037,7 +1037,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
|
|
||||||
ActionData data = new ActionData();
|
ActionData data = new ActionData();
|
||||||
data.hasJunk = hasJunk;
|
data.hasJunk = hasJunk;
|
||||||
data.delete = (inTrash || !hasTrash);
|
data.delete = (inTrash || !hasTrash || inOutbox);
|
||||||
data.message = message;
|
data.message = message;
|
||||||
bnvActions.setTag(data);
|
bnvActions.setTag(data);
|
||||||
|
|
||||||
|
@ -2902,6 +2902,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
EntityFolder folder = db.folder().getFolder(message.folder);
|
EntityFolder folder = db.folder().getFolder(message.folder);
|
||||||
|
if (folder == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
if (EntityFolder.OUTBOX.equals(folder.type)) {
|
if (EntityFolder.OUTBOX.equals(folder.type)) {
|
||||||
db.message().deleteMessage(id);
|
db.message().deleteMessage(id);
|
||||||
|
|
Loading…
Reference in New Issue