Skip to content

Commit

Permalink
chore(meeting-inception): use retrosInDisguise flag for displaying ad…
Browse files Browse the repository at this point in the history
…d an activity button (#9297)
  • Loading branch information
igorlesnenko committed Jan 9, 2024
1 parent 8de6b80 commit 126a1a0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions packages/client/components/DiscussionThreadInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ const DiscussionThreadInput = forwardRef((props: Props, ref: any) => {
graphql`
fragment DiscussionThreadInput_viewer on User {
picture
featureFlags {
retrosInDisguise
}
}
`,
viewerRef
Expand All @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 126a1a0

Please sign in to comment.