From 828d936325cffb19e5ccc4e96de60dc78c5912c4 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 6 Jul 2019 07:53:12 +0200 Subject: [PATCH] Swipe move similar messages --- .../eu/faircode/email/AdapterMessage.java | 3 +++ .../eu/faircode/email/FragmentMessages.java | 25 ++++++++++++++----- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 53a0790603..0c130e8814 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1471,6 +1471,8 @@ public class AdapterMessage extends RecyclerView.Adapter messages = db.message().getMessageByThread( + message.account, message.thread, threading ? null : id, message.folder); + for (EntityMessage threaded : messages) + EntityOperation.queue(context, threaded, EntityOperation.MOVE, target); + } + } else { + if (copy) + EntityOperation.queue(context, message, EntityOperation.COPY, target); + else + EntityOperation.queue(context, message, EntityOperation.MOVE, target); + } db.setTransactionSuccessful(); } finally {