Permanently delete messages instead of conversations

This commit is contained in:
M66B 2019-07-21 13:28:47 +02:00
parent 4977f66c1d
commit 6ca9d9d3b3
1 changed files with 2 additions and 6 deletions

View File

@ -1794,12 +1794,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
for (long id : selected) {
EntityMessage message = db.message().getMessage(id);
if (message != null) {
List<EntityMessage> messages = db.message().getMessageByThread(
message.account, message.thread, threading ? null : id, message.folder);
for (EntityMessage threaded : messages)
ids.add(threaded.id);
}
if (message != null && message.uid != null)
ids.add(message.id);
}
db.setTransactionSuccessful();