Fix users events being hidden by muted words

This commit is contained in:
hzrd149 2024-08-12 14:06:12 -05:00
parent b1d7418151
commit 5c49114375
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"nostrudel": patch
---
Fix users events being hidden by muted words

View File

@ -13,8 +13,9 @@ export default function useClientSideMuteFilter() {
return useCallback(
(event: NostrEvent) => {
if (event.pubkey === account?.pubkey) return false;
return wordMuteFilter(event) || mustListFilter(event);
},
[wordMuteFilter, mustListFilter],
[wordMuteFilter, mustListFilter, account?.pubkey],
);
}