Remove desktop.deleteSync from RemoteConfig

This commit is contained in:
Fedor Indutny 2024-07-23 09:58:40 -07:00 committed by GitHub
parent c70a8955f9
commit 06f9c4ffe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 4 additions and 22 deletions

View file

@ -5,20 +5,16 @@ import { createSelector } from 'reselect';
import { getUserACI } from './user';
import { getConversationSelector } from './conversations';
import { getRemoteConfig, isRemoteConfigFlagEnabled } from './items';
import type { AciString } from '../../types/ServiceId';
import type { ConfigMapType } from '../../RemoteConfig';
import type { GetConversationByIdType } from './conversations';
export const getDeleteSyncSendEnabled = createSelector(
getUserACI,
getConversationSelector,
getRemoteConfig,
(
aci: AciString | undefined,
conversationSelector: GetConversationByIdType,
remoteConfig: ConfigMapType
conversationSelector: GetConversationByIdType
): boolean => {
if (!aci) {
return false;
@ -33,6 +29,6 @@ export const getDeleteSyncSendEnabled = createSelector(
return false;
}
return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.deleteSync.send');
return true;
}
);