Skip to content

Commit

Permalink
disable experemental check for chats
Browse files Browse the repository at this point in the history
  • Loading branch information
requilence committed Sep 30, 2024
1 parent 7007da9 commit 3114785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/ts/lib/util/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class UtilData {
items.push(S.Record.getSetType());
};

if (withChat && config.experimental) {
if (withChat) {
items.push(S.Record.getChatType());
};

Expand Down Expand Up @@ -789,15 +789,15 @@ class UtilData {
filters.push({ relationKey: 'isArchived', condition: I.FilterCondition.NotEqual, value: true });
};

if (!config.experimental) {
/*if (!config.experimental) {
const chatType = S.Record.getChatType();
if (chatType) {
filters.push({ relationKey: 'type', condition: I.FilterCondition.NotEqual, value: chatType?.id });
};
filters.push({ relationKey: 'uniqueKey', condition: I.FilterCondition.NotEqual, value: J.Constant.typeKey.chat });
};
};*/

if (chatDerivedType) {
filters.push({ relationKey: 'type', condition: I.FilterCondition.NotEqual, value: chatDerivedType.id });
Expand Down
2 changes: 1 addition & 1 deletion src/ts/lib/util/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ class UtilMenu {
const { config } = S.Common;
return [
{ id: J.Constant.widgetId.favorite, name: translate('widgetFavorite'), iconEmoji: '⭐' },
config.experimental ? { id: J.Constant.widgetId.chat, name: translate('widgetChat'), iconEmoji: '💬' } : null,
{ id: J.Constant.widgetId.chat, name: translate('widgetChat'), iconEmoji: '💬' },
{ id: J.Constant.widgetId.set, name: translate('widgetSet'), iconEmoji: '🔍' },
{ id: J.Constant.widgetId.collection, name: translate('widgetCollection'), iconEmoji: '🗂️' },
{ id: J.Constant.widgetId.recentEdit, name: translate('widgetRecent'), iconEmoji: '📝' },
Expand Down

0 comments on commit 3114785

Please sign in to comment.