fix: some 🐛
This commit is contained in:
@@ -108,7 +108,10 @@ export default function NotificationList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (notifications.length > 0) {
|
if (notifications.length > 0) {
|
||||||
setNotifications((oldNotifications) => [...oldNotifications, ...notifications])
|
setNotifications((oldNotifications) => [
|
||||||
|
...oldNotifications,
|
||||||
|
...notifications.filter((event) => event.pubkey !== pubkey)
|
||||||
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
setUntil(notifications[notifications.length - 1].created_at - 1)
|
setUntil(notifications[notifications.length - 1].created_at - 1)
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function ParentNotePreview({
|
|||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
>
|
>
|
||||||
<div className="shrink-0">{t('reply to')}</div>
|
<div className="shrink-0">{t('reply to')}</div>
|
||||||
<UserAvatar userId={event.pubkey} size="tiny" />
|
<UserAvatar className="shrink-0" userId={event.pubkey} size="tiny" />
|
||||||
<div className="truncate">{event.content}</div>
|
<div className="truncate">{event.content}</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ export default function NotePage({ id, index }: { id?: string; index?: number })
|
|||||||
return (
|
return (
|
||||||
<SecondaryPageLayout index={index} titlebarContent={t('Note')} displayScrollToTopButton>
|
<SecondaryPageLayout index={index} titlebarContent={t('Note')} displayScrollToTopButton>
|
||||||
<div className="px-4">
|
<div className="px-4">
|
||||||
<ParentNote key={`root-note-${event.id}`} eventId={rootEventId} />
|
{rootEventId !== parentEventId && (
|
||||||
|
<ParentNote key={`root-note-${event.id}`} eventId={rootEventId} />
|
||||||
|
)}
|
||||||
<ParentNote key={`parent-note-${event.id}`} eventId={parentEventId} />
|
<ParentNote key={`parent-note-${event.id}`} eventId={parentEventId} />
|
||||||
<Note key={`note-${event.id}`} event={event} fetchNoteStats />
|
<Note key={`note-${event.id}`} event={event} fetchNoteStats />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user