1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Leave delete is non destructive

This commit is contained in:
M66B 2022-01-09 11:20:38 +01:00
parent bfc632c4b9
commit 622bff97fd

View file

@ -2302,7 +2302,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
else if (EntityMessage.SWIPE_ACTION_DELETE.equals(action) ||
(action.equals(message.folder) && EntityFolder.TRASH.equals(message.folderType)) ||
(EntityFolder.TRASH.equals(actionType) && EntityFolder.JUNK.equals(message.folderType)))
icon = R.drawable.twotone_delete_forever_24;
icon = Boolean.TRUE.equals(message.accountLeaveDeleted) &&
EntityFolder.INBOX.equals(message.folderType)
? R.drawable.twotone_delete_24
: R.drawable.twotone_delete_forever_24;
else if (EntityMessage.SWIPE_ACTION_REPLY.equals(action))
icon = R.drawable.twotone_reply_24;
else