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(
getRemoteConfig,
remoteConfig => {
return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.textFormatting');
return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.internalUser');
}
);
export const getIsFormattingSpoilersFlagEnabled = createSelector(
getRemoteConfig,
remoteConfig => {
return isRemoteConfigFlagEnabled(
remoteConfig,
'desktop.textFormatting.spoilerSend'
);
return isRemoteConfigFlagEnabled(remoteConfig, 'desktop.internalUser');
}
);

View file

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