mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 06:03:22 +00:00
rm excess "show thread"
This commit is contained in:
parent
eb513f2501
commit
0fa11e5a62
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user