Move all messages in thread of selected message

This commit is contained in:
M66B 2018-10-25 06:28:27 +00:00
parent c32397539d
commit ccbeed18bf
1 changed files with 8 additions and 3 deletions

View File

@ -624,10 +624,15 @@ public class FragmentMessages extends FragmentEx {
db.beginTransaction();
for (long id : ids) {
db.message().setMessageUiHide(id, true);
EntityMessage message = db.message().getMessage(id);
EntityOperation.queue(db, message, EntityOperation.MOVE, target);
List<EntityMessage> messages =
db.message().getMessageByThread(message.account, message.thread);
for (EntityMessage threaded : messages) {
if (threaded.folder.equals(message.folder)) {
db.message().setMessageUiHide(threaded.id, true);
EntityOperation.queue(db, threaded, EntityOperation.MOVE, target);
}
}
}
db.setTransactionSuccessful();