Flag messages in same folder only (2)

This commit is contained in:
M66B 2020-02-24 18:33:22 +01:00
parent 2fc758ef0b
commit 8fd5f6edec
3 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);

View File

@ -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);