Don't call MessageStore.deleteFolders() with an empty list

This commit is contained in:
cketti 2021-09-24 18:22:24 +02:00
parent 8350a62cad
commit 0bc6d380c5

View file

@ -60,7 +60,9 @@ class K9BackendStorage(
}
override fun deleteFolders(folderServerIds: List<String>) {
messageStore.deleteFolders(folderServerIds)
if (folderServerIds.isNotEmpty()) {
messageStore.deleteFolders(folderServerIds)
}
}
override fun changeFolder(folderServerId: String, name: String, type: RemoteFolderType) {