1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00

JS-7079: fix

This commit is contained in:
Andrew Simachev 2025-05-19 10:15:44 +02:00
parent 91ba4a6dc0
commit 7a59bb69f4
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
2 changed files with 6 additions and 2 deletions

View file

@ -335,6 +335,7 @@ export interface SearchSubscribeParam {
ignoreHidden: boolean;
ignoreDeleted: boolean;
ignoreArchived: boolean;
ignoreChat: boolean;
skipLayoutFormat: I.ObjectLayout[];
noDeps: boolean;
};

View file

@ -50,12 +50,12 @@ class UtilSubscription {
defaultFilters (param: any) {
const { config } = S.Common;
const { ignoreHidden, ignoreDeleted, ignoreArchived } = param;
const { ignoreHidden, ignoreDeleted, ignoreArchived, ignoreChat } = param;
const filters = U.Common.objectCopy(param.filters || []);
let skipLayouts = [];
if (!config.experimental) {
if (ignoreChat) {
skipLayouts = skipLayouts.concat([ I.ObjectLayout.Chat, I.ObjectLayout.ChatOld ]);
};
@ -115,6 +115,7 @@ class UtilSubscription {
ignoreHidden: true,
ignoreDeleted: true,
ignoreArchived: true,
ignoreChat: true,
noDeps: false,
afterId: '',
beforeId: '',
@ -277,6 +278,7 @@ class UtilSubscription {
ignoreHidden: true,
ignoreDeleted: true,
ignoreArchived: true,
ignoreChat: true,
skipLayoutFormat: null,
}, param);
@ -446,6 +448,7 @@ class UtilSubscription {
ignoreDeleted: true,
ignoreHidden: false,
ignoreArchived: false,
ignoreChat: false,
onSubscribe: () => {
S.Record.getRecords(J.Constant.subId.type).forEach(it => S.Record.typeKeyMapSet(it.spaceId, it.uniqueKey, it.id));
}