mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-31 07:10:14 -05:00
Fix deleteThreadsSynchronous()
This commit is contained in:
parent
fb5e8eea84
commit
36b572fa5f
@ -3590,7 +3590,9 @@ public class MessagingController implements Runnable {
|
||||
List<Message> messagesToDelete = new ArrayList<Message>();
|
||||
for (Message message : messages) {
|
||||
long rootId = ((LocalMessage) message).getRootId();
|
||||
Message[] messagesInThread = localStore.getMessagesInThread(rootId);
|
||||
long threadId = (rootId == -1) ? message.getId() : rootId;
|
||||
|
||||
Message[] messagesInThread = localStore.getMessagesInThread(threadId);
|
||||
Collections.addAll(messagesToDelete, messagesInThread);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user