mirror of https://github.com/M66B/FairEmail.git
Flag messages in same folder only (2)
This commit is contained in:
parent
2fc758ef0b
commit
8fd5f6edec
|
@ -2623,7 +2623,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
EntityOperation.queue(context, message, EntityOperation.FLAG, flagged);
|
||||
else {
|
||||
List<EntityMessage> messages = db.message().getMessagesByThread(
|
||||
message.account, message.thread, threading && thread ? null : id, message.folder);
|
||||
message.account, message.thread, threading && thread ? null : id, flagged ? message.folder : null);
|
||||
for (EntityMessage threaded : messages)
|
||||
EntityOperation.queue(context, threaded, EntityOperation.FLAG, flagged);
|
||||
}
|
||||
|
|
|
@ -2388,7 +2388,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
continue;
|
||||
|
||||
List<EntityMessage> messages = db.message().getMessagesByThread(
|
||||
message.account, message.thread, threading ? null : id, message.folder);
|
||||
message.account, message.thread, threading ? null : id, flagged ? message.folder : null);
|
||||
for (EntityMessage threaded : messages)
|
||||
if (threaded.ui_flagged != flagged || !Objects.equals(threaded.color, color))
|
||||
EntityOperation.queue(context, threaded, EntityOperation.FLAG, flagged, color);
|
||||
|
|
|
@ -313,7 +313,7 @@ public class ServiceUI extends IntentService {
|
|||
return;
|
||||
|
||||
List<EntityMessage> messages = db.message().getMessagesByThread(
|
||||
message.account, message.thread, threading ? null : id, null);
|
||||
message.account, message.thread, threading ? null : id, message.folder);
|
||||
for (EntityMessage threaded : messages) {
|
||||
EntityOperation.queue(this, threaded, EntityOperation.FLAG, true);
|
||||
EntityOperation.queue(this, threaded, EntityOperation.SEEN, true);
|
||||
|
|
Loading…
Reference in New Issue