Update feature flags for text formatting for beta release

This commit is contained in:
Scott Nonnenberg 2023-04-19 15:18:13 -07:00 committed by GitHub
parent 9ce0746f5b
commit 6f67a57e8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -27,16 +27,13 @@ export const getQuotedMessageSelector = createSelector(
export const getIsFormattingFlagEnabled = createSelector( export const getIsFormattingFlagEnabled = createSelector(
getRemoteConfig, getRemoteConfig,
remoteConfig => { remoteConfig => {
return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.textFormatting'); return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.internalUser');
} }
); );
export const getIsFormattingSpoilersFlagEnabled = createSelector( export const getIsFormattingSpoilersFlagEnabled = createSelector(
getRemoteConfig, getRemoteConfig,
remoteConfig => { remoteConfig => {
return isRemoteConfigFlagEnabled( return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.internalUser');
remoteConfig,
'desktop.textFormatting.spoilerSend'
);
} }
); );

View file

@ -412,7 +412,7 @@ export function createIPCEvents(
return window.IPC.setAutoLaunch(value); return window.IPC.setAutoLaunch(value);
}, },
isFormattingFlagEnabled: () => isEnabled('desktop.textFormatting'), isFormattingFlagEnabled: () => isEnabled('desktop.internalUser'),
isPhoneNumberSharingEnabled: () => isPhoneNumberSharingEnabled(), isPhoneNumberSharingEnabled: () => isPhoneNumberSharingEnabled(),
isPrimary: () => window.textsecure.storage.user.getDeviceId() === 1, isPrimary: () => window.textsecure.storage.user.getDeviceId() === 1,
shouldShowStoriesSettings: () => getStoriesAvailable(), shouldShowStoriesSettings: () => getStoriesAvailable(),