turn cross team search ff into a config value (#8694)

This commit is contained in:
Julien Tant 2025-03-26 10:37:14 -07:00 committed by GitHub
parent 427d61efd4
commit 97210af090
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ const enhance = withObservables([], ({database}: WithDatabaseArgs) => {
return {
teamId: currentTeamId,
teams: observeSortedJoinedTeams(database),
crossTeamSearchEnabled: observeConfigBooleanValue(database, 'FeatureFlagExperimentalCrossTeamSearch'),
crossTeamSearchEnabled: observeConfigBooleanValue(database, 'EnableCrossTeamSearch'),
};
});

View file

@ -23,7 +23,7 @@ const enhance = withObservables(['teamId'], ({database, teamId}: EnhanceProps) =
switchMap((t) => of$(t?.displayName || '')),
distinctUntilChanged(),
),
crossTeamSearchEnabled: observeConfigBooleanValue(database, 'FeatureFlagExperimentalCrossTeamSearch'),
crossTeamSearchEnabled: observeConfigBooleanValue(database, 'EnableCrossTeamSearch'),
};
});

View file

@ -51,6 +51,7 @@ interface ClientConfig {
EnableCommands: string;
EnableCompliance: string;
EnableConfirmNotificationsToChannel: string;
EnableCrossTeamSearch: 'true' | 'false';
EnableCustomBrand: string;
EnableCustomEmoji: string;
EnableCustomTermsOfService: string;
@ -121,7 +122,6 @@ interface ClientConfig {
FeatureFlagCollapsedThreads?: string;
FeatureFlagPostPriority?: string;
FeatureFlagChannelBookmarks?: string;
FeatureFlagExperimentalCrossTeamSearch?: string;
FeatureFlagCustomProfileAttributes?: string;
ForgotPasswordLink?: string;
GfycatApiKey: string;