From 2f7b9674ef92e7a698be0d478568faf5f40dc276 Mon Sep 17 00:00:00 2001 From: Igor Lesnenko Date: Wed, 20 Dec 2023 21:42:18 +0400 Subject: [PATCH] chore(meeting-inception): use retrosInDisguise flag for displaying add an activity button --- .../client/components/DiscussionThreadInput.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/client/components/DiscussionThreadInput.tsx b/packages/client/components/DiscussionThreadInput.tsx index beb88b36b3e..06f8a1a2fd5 100644 --- a/packages/client/components/DiscussionThreadInput.tsx +++ b/packages/client/components/DiscussionThreadInput.tsx @@ -106,6 +106,9 @@ const DiscussionThreadInput = forwardRef((props: Props, ref: any) => { graphql` fragment DiscussionThreadInput_viewer on User { picture + featureFlags { + retrosInDisguise + } } `, viewerRef @@ -119,22 +122,16 @@ const DiscussionThreadInput = forwardRef((props: Props, ref: any) => { discussionTopicType team { id - organization { - featureFlags { - meetingInception - } - } } } `, discussionRef ) - const {picture} = viewer + const {picture, featureFlags} = viewer const isReply = !!props.isReply const isDisabled = !!props.isDisabled const {id: discussionId, meetingId, isAnonymousComment, team, discussionTopicType} = discussion - const {id: teamId, organization} = team - const {featureFlags} = organization + const {id: teamId} = team const [editorState, setEditorState] = useReplyEditorState(replyMention, setReplyMention) const atmosphere = useAtmosphere() const {submitting, onError, onCompleted, submitMutation} = useMutationProps() @@ -301,7 +298,7 @@ const DiscussionThreadInput = forwardRef((props: Props, ref: any) => { } }, []) - const allowAddActivity = featureFlags.meetingInception + const allowAddActivity = featureFlags.retrosInDisguise const isActionsContainerVisible = allowTasks || allowPolls || allowAddActivity const isActionsContainerDisabled = isCreatingTask || isCreatingPoll const avatar = isAnonymousComment ? anonymousAvatar : picture