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:
parent
91ba4a6dc0
commit
7a59bb69f4
2 changed files with 6 additions and 2 deletions
|
@ -335,6 +335,7 @@ export interface SearchSubscribeParam {
|
|||
ignoreHidden: boolean;
|
||||
ignoreDeleted: boolean;
|
||||
ignoreArchived: boolean;
|
||||
ignoreChat: boolean;
|
||||
skipLayoutFormat: I.ObjectLayout[];
|
||||
noDeps: boolean;
|
||||
};
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue