rm excess "show thread"

This commit is contained in:
Martti Malmi 2023-08-24 10:39:02 +03:00
parent eb513f2501
commit 0fa11e5a62

View File

@ -84,9 +84,9 @@ const Note: React.FC<NoteProps> = ({
});
}, [standalone, computedIsQuote, computedIsQuoting, asInlineQuote, fullWidth]);
let threadRoot = getEventRoot(event);
if (!threadRoot) {
threadRoot = replyingTo;
let threadRootId = getEventRoot(event);
if (!threadRootId) {
threadRootId = replyingTo;
}
function messageClicked(clickEvent) {
@ -113,10 +113,10 @@ const Note: React.FC<NoteProps> = ({
) : null;
const showThreadBtn = (
<Show when={!standalone && !isReply && !isQuoting && threadRoot}>
<Show when={!standalone && !showRepliedMsg && !isReply && !isQuoting && threadRootId}>
<Link
className="text-iris-blue text-sm block mb-2"
href={`/${Key.toNostrBech32Address(threadRoot || '', 'note')}`}
href={`/${Key.toNostrBech32Address(threadRootId || '', 'note')}`}
>
{t('show_thread')}
</Link>