Always visible arrows, new remote config

This commit is contained in:
Fedor Indutny 2023-07-19 00:22:48 +02:00 committed by Fedor Indutnyy
parent 381e53297b
commit ec94cc182a
3 changed files with 10 additions and 8 deletions

View file

@ -114,13 +114,6 @@
width: 18px;
height: var(--height);
opacity: 0;
transition: opacity 200ms ease-in-out;
&:hover {
opacity: 1;
}
}
&__prev {

View file

@ -31,6 +31,7 @@ export type ConfigKeyType =
| 'desktop.pnp'
| 'desktop.retryRespondMaxAge'
| 'desktop.safetyNumberAci'
| 'desktop.safetyNumberAci.beta'
| 'desktop.senderKey.retry'
| 'desktop.senderKey.send'
| 'desktop.senderKeyMaxAge'

View file

@ -166,7 +166,15 @@ export const getSafetyNumberMode = createSelector(
serverTimeSkew: number,
now: number
): SafetyNumberMode => {
if (!isRemoteConfigFlagEnabled(remoteConfig, 'desktop.safetyNumberAci')) {
if (
!isRemoteConfigFlagEnabled(remoteConfig, 'desktop.safetyNumberAci') &&
!(
isRemoteConfigFlagEnabled(
remoteConfig,
'desktop.safetyNumberAci.beta'
) && isBeta(window.getVersion())
)
) {
return SafetyNumberMode.E164;
}