mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Simplification
This commit is contained in:
parent
0831deec77
commit
0476713778
1 changed files with 5 additions and 11 deletions
|
@ -525,17 +525,11 @@ public class FragmentMessages extends FragmentEx {
|
||||||
|
|
||||||
result.target = target;
|
result.target = target;
|
||||||
|
|
||||||
if (thread) {
|
List<EntityMessage> messages = db.message().getMessageByThread(
|
||||||
List<EntityMessage> messages = db.message().getMessageByThread(
|
message.account, message.thread, threading && thread ? null : id, message.folder, message.ui_found);
|
||||||
message.account, message.thread, threading ? null : id, message.folder, message.ui_found);
|
for (EntityMessage threaded : messages) {
|
||||||
for (EntityMessage threaded : messages)
|
result.ids.add(threaded.id);
|
||||||
result.ids.add(threaded.id);
|
db.message().setMessageUiHide(threaded.id, true);
|
||||||
} else
|
|
||||||
result.ids.add(message.id);
|
|
||||||
|
|
||||||
for (long mid : result.ids) {
|
|
||||||
Log.i(Helper.TAG, "Move hide id=" + mid + " target=" + result.target.name);
|
|
||||||
db.message().setMessageUiHide(mid, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
db.setTransactionSuccessful();
|
db.setTransactionSuccessful();
|
||||||
|
|
Loading…
Reference in a new issue