Enable customization of preferred reactions for everyone
This commit is contained in:
parent
1e3de45af6
commit
c170d04ffa
3 changed files with 1 additions and 16 deletions
|
@ -9,7 +9,6 @@ import * as log from './logging/log';
|
||||||
export type ConfigKeyType =
|
export type ConfigKeyType =
|
||||||
| 'desktop.announcementGroup'
|
| 'desktop.announcementGroup'
|
||||||
| 'desktop.clientExpiration'
|
| 'desktop.clientExpiration'
|
||||||
| 'desktop.customizePreferredReactions'
|
|
||||||
| 'desktop.disableGV1'
|
| 'desktop.disableGV1'
|
||||||
| 'desktop.groupCallOutboundRing'
|
| 'desktop.groupCallOutboundRing'
|
||||||
| 'desktop.groupCalling'
|
| 'desktop.groupCalling'
|
||||||
|
|
|
@ -6,7 +6,6 @@ import { convertShortName } from '../emoji/lib';
|
||||||
import { Props as EmojiPickerProps } from '../emoji/EmojiPicker';
|
import { Props as EmojiPickerProps } from '../emoji/EmojiPicker';
|
||||||
import { useRestoreFocus } from '../../hooks/useRestoreFocus';
|
import { useRestoreFocus } from '../../hooks/useRestoreFocus';
|
||||||
import { LocalizerType } from '../../types/Util';
|
import { LocalizerType } from '../../types/Util';
|
||||||
import { canCustomizePreferredReactions } from '../../util/canCustomizePreferredReactions';
|
|
||||||
import {
|
import {
|
||||||
ReactionPickerPicker,
|
ReactionPickerPicker,
|
||||||
ReactionPickerPickerEmojiButton,
|
ReactionPickerPickerEmojiButton,
|
||||||
|
@ -80,9 +79,7 @@ export const ReactionPicker = React.forwardRef<HTMLDivElement, Props>(
|
||||||
|
|
||||||
if (pickingOther) {
|
if (pickingOther) {
|
||||||
return renderEmojiPicker({
|
return renderEmojiPicker({
|
||||||
onClickSettings: canCustomizePreferredReactions()
|
onClickSettings: openCustomizePreferredReactionsModal,
|
||||||
? openCustomizePreferredReactionsModal
|
|
||||||
: undefined,
|
|
||||||
onClose,
|
onClose,
|
||||||
onPickEmoji,
|
onPickEmoji,
|
||||||
onSetSkinTone,
|
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…
Add table
Add a link
Reference in a new issue