[Chat] Hide blocked accounts' reactions in chats (#10889)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user