1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-348 Editor | Fix | Do not suggest "Bookmark" among "Object types" in slash widget (#2523)

This commit is contained in:
Evgenii Kozlov 2022-08-17 19:38:20 +03:00 committed by GitHub
parent e8ea904a6f
commit d141dceb41
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4253,7 +4253,7 @@ class EditorViewModel(
controlPanelInteractor.onEvent(panelEvent)
return
}
getObjectTypes() { objectTypes ->
getObjectTypes(excluded = listOf(ObjectType.BOOKMARK_TYPE)) { objectTypes ->
getRelations { relations ->
val widgetState = SlashExtensions.getUpdatedSlashWidgetState(
text = event.filter,
@ -4333,7 +4333,7 @@ class EditorViewModel(
getRelations { proceedWithRelations(it) }
}
is SlashItem.Main.Objects -> {
getObjectTypes() {
getObjectTypes(excluded = listOf(ObjectType.BOOKMARK_TYPE)) {
proceedWithObjectTypes(it)
}
}