Skip to content

Commit 8f55bf1

Browse files
authored
Merge pull request #4003 from anyproto/ios-5235-limit-object-types-not-contain-some-types
iOS-5235 Queries | add types for filters and queries
2 parents 1045dd8 + 4dad2f1 commit 8f55bf1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Anytype/Sources/PresentationLayer/AddNewRelation flow/CreateNewRelation/View/ObjectTypesLimitedSearchView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ struct ObjectTypesLimitedSearchView: View {
2929
interactor: Legacy_ObjectTypeSearchInteractor(
3030
spaceId: data.spaceId,
3131
showBookmark: true,
32-
showSetAndCollection: false,
33-
showFiles: false
32+
showSetAndCollection: true,
33+
showFiles: true
3434
),
3535
onSelect: { ids in
3636
dismiss()

Anytype/Sources/PresentationLayer/ObjectTypeSearch/ObjectTypeSearchViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ final class ObjectTypeSearchViewModel: ObservableObject {
8080
let objectTypes = try await typesService.searchObjectTypes(
8181
text: searchText,
8282
includePins: !settings.showPins,
83-
includeLists: false,
83+
includeLists: true,
8484
includeBookmarks: true,
8585
includeFiles: settings.showFiles,
8686
includeChat: settings.showChat,

Anytype/Sources/PresentationLayer/Search screen/InternalViewModels/Legacy_ObjectTypeSearchViewModel/Interactor/Legacy_ObjectTypeSearchInteractor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ extension Legacy_ObjectTypeSearchInteractor {
4242
includeBookmarks: showBookmark,
4343
includeFiles: showFiles,
4444
includeChat: false,
45-
includeTemplates: false,
46-
incudeNotForCreation: false,
45+
includeTemplates: true,
46+
incudeNotForCreation: true,
4747
spaceId: spaceId
4848
)
4949
}

0 commit comments

Comments
 (0)