[Chat] Hide blocked accounts' reactions in chats (#10889)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-06-12 21:19:22 +03:00
committed by GitHub
parent 581d2b296d
commit 7310426ea7
6 changed files with 103 additions and 13 deletions
@@ -327,6 +327,7 @@ function BaseChatItem({
const info = getMessageInfo({
convo: convo.view,
currentAccountDid: currentAccount?.did,
primaryProfile,
i18n,
})
if (info) {
@@ -342,10 +343,12 @@ function BaseChatItem({
const info = getReactionInfo({
convo: convo.view,
currentAccountDid: currentAccount?.did,
primaryProfile,
i18n,
})
if (
info &&
!info.isBlocked &&
(!lastMessageSentAt ||
new Date(lastMessageSentAt) < new Date(info.createdAt))
) {
@@ -379,7 +382,7 @@ function BaseChatItem({
LastMessageIcon,
lastMessageSentAt,
}
}, [l, convo, currentAccount?.did, isDeletedAccount, i18n])
}, [l, convo, currentAccount?.did, isDeletedAccount, primaryProfile, i18n])
const [showActions, setShowActions] = useState(false)