Fixed permanently deleting thread

pull/162/head
M66B 5 years ago
parent d5697f27cf
commit 37759ea1aa

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

Loading…
Cancel
Save