Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(meeting-inception): use retrosInDisguise flag for displaying add an activity button #9297

Merged
merged 1 commit into from
Jan 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading