Enable customization of preferred reactions for everyone
This commit is contained in:
parent
1e3de45af6
commit
c170d04ffa
|
@ -9,7 +9,6 @@ import * as log from './logging/log';
|
|||
export type ConfigKeyType =
|
||||
| 'desktop.announcementGroup'
|
||||
| 'desktop.clientExpiration'
|
||||
| 'desktop.customizePreferredReactions'
|
||||
| 'desktop.disableGV1'
|
||||
| 'desktop.groupCallOutboundRing'
|
||||
| 'desktop.groupCalling'
|
||||
|
|
|
@ -6,7 +6,6 @@ import { convertShortName } from '../emoji/lib';
|
|||
import { Props as EmojiPickerProps } from '../emoji/EmojiPicker';
|
||||
import { useRestoreFocus } from '../../hooks/useRestoreFocus';
|
||||
import { LocalizerType } from '../../types/Util';
|
||||
import { canCustomizePreferredReactions } from '../../util/canCustomizePreferredReactions';
|
||||
import {
|
||||
ReactionPickerPicker,
|
||||
ReactionPickerPickerEmojiButton,
|
||||
|
@ -80,9 +79,7 @@ export const ReactionPicker = React.forwardRef<HTMLDivElement, Props>(
|
|||
|
||||
if (pickingOther) {
|
||||
return renderEmojiPicker({
|
||||
onClickSettings: canCustomizePreferredReactions()
|
||||
? openCustomizePreferredReactionsModal
|
||||
: undefined,
|
||||
onClickSettings: openCustomizePreferredReactionsModal,
|
||||
onClose,
|
||||
onPickEmoji,
|
||||
onSetSkinTone,
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import * as RemoteConfig from '../RemoteConfig';
|
||||
|
||||
export function canCustomizePreferredReactions(): boolean {
|
||||
return Boolean(
|
||||
RemoteConfig.isEnabled('desktop.internalUser') ||
|
||||
RemoteConfig.isEnabled('desktop.customizePreferredReactions')
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue