Use local_only column in FolderRepository

This commit is contained in:
cketti 2018-07-23 13:54:25 +02:00
parent ee777e62eb
commit de61ec288c

View file

@ -13,10 +13,9 @@ class FolderRepository(private val account: Account) {
fun getRemoteFolders(): List<Folder> {
val folders = account.localStore.getPersonalNamespaces(false)
val outbox = account.outboxFolder
return folders
.filter { it.serverId != outbox }
.filterNot { it.isLocalOnly }
.map(::createFolderFromLocalFolder)
}