Fix muffle

This commit is contained in:
Jonathan Staab 2023-02-06 11:50:44 -06:00
parent 9bdb707d27
commit 090f9d888e
2 changed files with 5 additions and 1 deletions

View File

@ -54,6 +54,8 @@ If you like Coracle and want to support its development, you can donate sats via
- Stack views?
- Put user detail in a modal?
- ReplaceState for settings modals?
- [ ] Use nip 56 for reporting
- https://github.com/nostr-protocol/nips/pull/205#issuecomment-1419234230
- [ ] Mentions are sorta weird, usually mention self
- [ ] Change network tab to list relays the user is connected to
- [ ] Sync mentions box and in-reply mentions

View File

@ -28,7 +28,9 @@ export const getMuffle = () => {
return []
}
return Tags.wrap($user.muffle.filter(t => Math.random() < last(t))).values().all()
const shouldMuffle = t => Math.random() > parseFloat(last(t))
return Tags.wrap($user.muffle.filter(shouldMuffle)).values().all()
}
export const getFollows = pubkey => {