diff --git a/src/components/PostControls/RepostButton.tsx b/src/components/PostControls/RepostButton.tsx index db63a7383a..31438c6bd3 100644 --- a/src/components/PostControls/RepostButton.tsx +++ b/src/components/PostControls/RepostButton.tsx @@ -40,6 +40,17 @@ let RepostButton = ({ const requireAuth = useRequireAuth() const dialogControl = Dialog.useDialogControl() + const onPress = () => requireAuth(() => dialogControl.open()) + + const onLongPress = () => + requireAuth(() => { + if (embeddingDisabled) { + dialogControl.open() + } else { + onQuote() + } + }) + return ( <> requireAuth(() => dialogControl.open())} - onLongPress={() => requireAuth(() => onQuote())} + onPress={onPress} + onLongPress={onLongPress} label={ isReposted ? _(