Add "should show badges" feature flag
This commit is contained in:
parent
dd342e1f22
commit
ab543aea93
5 changed files with 29 additions and 3 deletions
|
@ -14,6 +14,7 @@ import { BadgeDialog } from '../BadgeDialog';
|
|||
import type { BadgeType } from '../../badges/types';
|
||||
import { SharedGroupNames } from '../SharedGroupNames';
|
||||
import { ConfirmationDialog } from '../ConfirmationDialog';
|
||||
import { shouldShowBadges } from '../../badges/shouldShowBadges';
|
||||
|
||||
export type PropsDataType = {
|
||||
areWeAdmin: boolean;
|
||||
|
@ -105,7 +106,7 @@ export const ContactModal = ({
|
|||
unblurredAvatarPath={contact.unblurredAvatarPath}
|
||||
onClick={() => {
|
||||
setView(
|
||||
preferredBadge
|
||||
preferredBadge && shouldShowBadges()
|
||||
? ContactModalView.ShowingBadges
|
||||
: ContactModalView.ShowingAvatar
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue