diff --git a/src/view/com/util/forms/PostDropdownBtn.tsx b/src/view/com/util/forms/PostDropdownBtn.tsx index e9b07f7c3d..15bbf72693 100644 --- a/src/view/com/util/forms/PostDropdownBtn.tsx +++ b/src/view/com/util/forms/PostDropdownBtn.tsx @@ -127,6 +127,7 @@ let PostDropdownBtn = ({ const postInteractionSettingsDialogControl = useDialogControl() const quotePostDetachConfirmControl = useDialogControl() const hideReplyConfirmControl = useDialogControl() + const hideAfterFeedbackPromptControl = useDialogControl() const {mutateAsync: toggleReplyVisibility} = useToggleReplyVisibilityMutation() @@ -268,9 +269,8 @@ let PostDropdownBtn = ({ item: postUri, feedContext: postFeedContext, }) - hidePost({uri: postUri}) Toast.show('Feedback sent!') - }, [feedFeedback, postUri, postFeedContext, hidePost]) + }, [feedFeedback, postUri, postFeedContext]) const onPressShowLess = React.useCallback(() => { feedFeedback.sendInteraction({ @@ -278,8 +278,9 @@ let PostDropdownBtn = ({ item: postUri, feedContext: postFeedContext, }) + hideAfterFeedbackPromptControl.open() Toast.show('Feedback sent!') - }, [feedFeedback, postUri, postFeedContext]) + }, [feedFeedback, postUri, postFeedContext, hideAfterFeedbackPromptControl]) const onSelectChatToShareTo = React.useCallback( (conversation: string) => { @@ -675,6 +676,16 @@ let PostDropdownBtn = ({ confirmButtonColor="negative" /> +