Use local_only column in FolderRepository
This commit is contained in:
parent
ee777e62eb
commit
de61ec288c
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue