address review comments and add private blocking

This commit is contained in:
Alejandro Gomez
2023-01-27 22:10:14 +01:00
parent 592a8b04c0
commit 456aa5fb79
23 changed files with 385 additions and 218 deletions

View File

@ -12,11 +12,10 @@ export interface MutedListProps {
}
export default function MutedList({ pubkey }: MutedListProps) {
const { publicKey } = useSelector((s: RootState) => s.login)
const { muted, isMuted, mute, unmute, muteAll } = useModeration();
const feed = useMutedFeed(pubkey)
const pubkeys = useMemo(() => {
return publicKey === pubkey ? muted : getMuted(feed.store, pubkey);
return getMuted(feed.store, pubkey);
}, [feed, pubkey]);
const hasAllMuted = pubkeys.every(isMuted)