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

JS-7079: fix

This commit is contained in:
Andrew Simachev 2025-05-19 10:11:28 +02:00
parent e2466f7683
commit 91ba4a6dc0
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -52,9 +52,13 @@ class UtilSubscription {
const { config } = S.Common;
const { ignoreHidden, ignoreDeleted, ignoreArchived } = param;
const filters = U.Common.objectCopy(param.filters || []);
const skipLayouts = [ I.ObjectLayout.Chat ];
let skipLayouts = [];
if (!config.experimental) {
skipLayouts = skipLayouts.concat([ I.ObjectLayout.Chat, I.ObjectLayout.ChatOld ]);
};
filters.push({ relationKey: 'resolvedLayout', condition: I.FilterCondition.NotIn, value: skipLayouts });
filters.push({ relationKey: 'recommendedLayout', condition: I.FilterCondition.NotIn, value: skipLayouts });
if (ignoreHidden && !config.debug.hiddenObject) {