From 5228902c4a08f549b528a3301e310c7087ef5ed7 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 5 Dec 2018 19:33:56 +0100 Subject: [PATCH] Fixed conversation thread's action bar archive/delete --- .../main/java/eu/faircode/email/FragmentMessages.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 2a07a5ce73..bb885667ea 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -583,6 +583,7 @@ public class FragmentMessages extends FragmentEx { private void onActionMove(String folderType) { Bundle args = new Bundle(); args.putLong("account", account); + args.putString("thread", thread); args.putBoolean("found", found); args.putString("folderType", folderType); @@ -604,10 +605,10 @@ public class FragmentMessages extends FragmentEx { List messages = db.message().getMessageByThread( account, thread, threading ? null : id, null, found); - for (EntityMessage message : messages) - if (!result.target.id.equals(message.folder)) { - result.ids.add(message.id); - db.message().setMessageUiHide(message.id, true); + for (EntityMessage threaded : messages) + if (!result.target.id.equals(threaded.folder)) { + result.ids.add(threaded.id); + db.message().setMessageUiHide(threaded.id, true); } db.setTransactionSuccessful();