Skip to content

Commit

Permalink
fix: do not render no maskbook users
Browse files Browse the repository at this point in the history
close #537
  • Loading branch information
guanbinrui authored and Jack-Works committed Dec 20, 2019
1 parent 61f3509 commit 5600f8d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ export function SelectRecipientsDialogUI(props: SelectRecipientsDialogUIProps) {
const currentIdentity = useCurrentIdentity()
const itemsForRender = props.ignoreMyself
? props.items.filter(
x => !x.identifier.equals(currentIdentity ? currentIdentity.identifier : ProfileIdentifier.unknown),
x =>
x?.linkedPersona?.fingerprint &&
!x.identifier.equals(currentIdentity ? currentIdentity.identifier : ProfileIdentifier.unknown),
)
: props.items
: props.items.filter(x => x.linkedPersona?.fingerprint)

return (
<div ref={rootRef}>
Expand Down

0 comments on commit 5600f8d

Please sign in to comment.