Fixed conversation thread's action bar archive/delete

pull/146/head
M66B 6 years ago
parent 2115ac3208
commit 5228902c4a

@ -583,6 +583,7 @@ public class FragmentMessages extends FragmentEx {
private void onActionMove(String folderType) { private void onActionMove(String folderType) {
Bundle args = new Bundle(); Bundle args = new Bundle();
args.putLong("account", account); args.putLong("account", account);
args.putString("thread", thread);
args.putBoolean("found", found); args.putBoolean("found", found);
args.putString("folderType", folderType); args.putString("folderType", folderType);
@ -604,10 +605,10 @@ public class FragmentMessages extends FragmentEx {
List<EntityMessage> messages = db.message().getMessageByThread( List<EntityMessage> messages = db.message().getMessageByThread(
account, thread, threading ? null : id, null, found); account, thread, threading ? null : id, null, found);
for (EntityMessage message : messages) for (EntityMessage threaded : messages)
if (!result.target.id.equals(message.folder)) { if (!result.target.id.equals(threaded.folder)) {
result.ids.add(message.id); result.ids.add(threaded.id);
db.message().setMessageUiHide(message.id, true); db.message().setMessageUiHide(threaded.id, true);
} }
db.setTransactionSuccessful(); db.setTransactionSuccessful();

Loading…
Cancel
Save