mirror of
https://github.com/thunderbird/thunderbird-android.git
synced 2024-09-20 04:02:14 +02:00
Merge pull request #3863 from k9mail/GH-3861_fix_deleting_folders
Fix deleting folders
This commit is contained in:
commit
88c12325b9
@ -49,7 +49,10 @@ class K9BackendStorage(
|
||||
folderServerIds.asSequence()
|
||||
.filterNot { account.isSpecialFolder(it) }
|
||||
.map { localStore.getFolder(it) }
|
||||
.forEach { it.delete() }
|
||||
.forEach {
|
||||
it.delete()
|
||||
it.delete(true)
|
||||
}
|
||||
|
||||
specialFolderUpdater.updateSpecialFolders()
|
||||
}
|
||||
|
@ -1906,7 +1906,7 @@ public class LocalFolder extends Folder<LocalMessage> {
|
||||
@Override
|
||||
public Void doDbWork(final SQLiteDatabase db) throws WrappedException, UnavailableStorageException {
|
||||
try {
|
||||
// We need to open the folder first to make sure we've got it's id
|
||||
// We need to open the folder first to make sure we've got its id
|
||||
open(OPEN_MODE_RO);
|
||||
List<LocalMessage> messages = getMessages(null);
|
||||
for (LocalMessage message : messages) {
|
||||
|
Loading…
Reference in New Issue
Block a user