1
0
forked from Kieran/snort

Fix thread reactions

This commit is contained in:
Kieran 2023-09-23 22:29:26 +01:00
parent 94da60ebfa
commit 5692423e3c
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -247,7 +247,7 @@ export function Thread(props: { onBack?: () => void }) {
className={className} className={className}
key={note.id} key={note.id}
data={note} data={note}
related={getReactions(thread.data, note.id)} related={getReactions(thread.reactions, note.id)}
options={{ showReactionsLink: true }} options={{ showReactionsLink: true }}
onClick={navigateThread} onClick={navigateThread}
/> />
@ -268,7 +268,7 @@ export function Thread(props: { onBack?: () => void }) {
active={thread.current} active={thread.current}
notes={replies} notes={replies}
related={getAllReactions( related={getAllReactions(
thread.data, thread.reactions,
replies.map(a => a.id), replies.map(a => a.id),
)} )}
chains={thread.chains} chains={thread.chains}