diff --git a/packages/status-react/src/protocol/use-members.tsx b/packages/status-react/src/protocol/use-members.tsx index 6669043..4137e98 100644 --- a/packages/status-react/src/protocol/use-members.tsx +++ b/packages/status-react/src/protocol/use-members.tsx @@ -2,9 +2,14 @@ import { useProtocol } from '~/src/protocol' import type { Member } from '@status-im/js' -// todo: remove in favor of useCommunity export const useMembers = (): Member[] => { - const { client } = useProtocol() + const { client, account } = useProtocol() + + if (account) { + return client.community.members.filter( + member => member.publicKey !== '0x' + account.publicKey + ) + } return client.community.members }