do not render reposts of badge award events in timelines #406

Merged
SamSamskies merged 3 commits from fix-unknown-kind8-bug into main 2023-03-08 17:30:19 +00:00
Showing only changes of commit 5cef511461 - Show all commits

View File

@ -56,13 +56,13 @@ export default function NoteReaction(props: NoteReactionProps) {
const root = extractRoot();
const isOpMuted = root && isMuted(root.pubkey);
const shouldBeNotBeRendered = isOpMuted || root?.kind === EventKind.BadgeAward;
const shouldNotBeRendered = isOpMuted || root?.kind === EventKind.BadgeAward;
const opt = {
showHeader: ev?.Kind === EventKind.Repost || ev?.Kind === EventKind.TextNote,
showFooter: false,
};
return shouldBeNotBeRendered ? null : (
return shouldNotBeRendered ? null : (
<div className="reaction">
<div className="header flex">
<ProfileImage pubkey={ev.RootPubKey} />