mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3181 Vault | Fix | Space with joining should not be considered as being in loading state (#2069)
This commit is contained in:
parent
7ffa23d09c
commit
f99d9f713f
2 changed files with 2 additions and 1 deletions
|
@ -292,6 +292,7 @@ sealed class ObjectWrapper {
|
|||
return spaceLocalStatus == SpaceStatus.LOADING
|
||||
&& spaceAccountStatus != SpaceStatus.SPACE_REMOVING
|
||||
&& spaceAccountStatus != SpaceStatus.SPACE_DELETED
|
||||
&& spaceAccountStatus != SpaceStatus.SPACE_JOINING
|
||||
}
|
||||
|
||||
val isActive: Boolean
|
||||
|
|
|
@ -103,7 +103,7 @@ class VaultViewModel(
|
|||
}
|
||||
.combine(observeVaultSettings.flow()) { spaces, settings ->
|
||||
spaces
|
||||
.filter { space -> space.isActive || space.isLoading }
|
||||
.filter { space -> (space.isActive || space.isLoading) }
|
||||
.distinctBy { it.id }
|
||||
.map { space ->
|
||||
VaultSpaceView(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue