1
0
Fork 0
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:
Evgenii Kozlov 2020-09-24 23:05:59 +03:00 committed by GitHub
parent 9f0dbdd66b
commit ba49f69fd7
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -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 ⚙

View file

@ -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
}
)
)