mirror of https://github.com/M66B/FairEmail.git
Permanently delete messages instead of conversations
This commit is contained in:
parent
4977f66c1d
commit
6ca9d9d3b3
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue