mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 13:57:10 +09:00
removed archive from navigation (#919)
This commit is contained in:
parent
9f0dbdd66b
commit
ba49f69fd7
2 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
* When creating a new document and focusing its title, cursor should be visible (#903)
|
||||
* Should not crash Android client when changing media block's background color on Desktop client (#814)
|
||||
* Stretched background cover affects app's performance on home dashboard screen (#901)
|
||||
* Remove Archive from Navigation links (inbound, outbound) (#919)
|
||||
|
||||
### Middleware ⚙
|
||||
|
||||
|
|
|
@ -16,10 +16,10 @@ class GetPageInfoWithLinks(private val repo: BlockRepository) :
|
|||
pageInfoWithLinks = it.copy(
|
||||
links = it.links.copy(
|
||||
outbound = it.links.outbound.filterNot { doc ->
|
||||
doc.fields.isArchived == true || doc.type == DocumentInfo.Type.SET
|
||||
doc.fields.isArchived == true || doc.type == DocumentInfo.Type.SET || doc.type == DocumentInfo.Type.ARCHIVE
|
||||
},
|
||||
inbound = it.links.inbound.filterNot { doc ->
|
||||
doc.fields.isArchived == true || doc.type == DocumentInfo.Type.SET
|
||||
doc.fields.isArchived == true || doc.type == DocumentInfo.Type.SET || doc.type == DocumentInfo.Type.ARCHIVE
|
||||
}
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue