Skip to content

Commit

Permalink
Merge pull request #147 from xmtp/rygine/blocked-to-denied
Browse files Browse the repository at this point in the history
`isBlocked` => `isDenied`
  • Loading branch information
rygine authored Jan 3, 2024
2 parents f38d77a + 760260b commit b6a8aa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/real-grapes-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@xmtp/react-sdk": patch
---

- Changed `isBlocked` to `isDenied`
2 changes: 1 addition & 1 deletion packages/react-sdk/src/hooks/useConsent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const useConsent = () => {
client?.contacts.consentState(address) ?? "unknown",
deny,
isAllowed: (address: string) => client?.contacts.isAllowed(address),
isBlocked: (address: string) => client?.contacts.isDenied(address),
isDenied: (address: string) => client?.contacts.isDenied(address),
loadConsentList,
refreshConsentList,
};
Expand Down

0 comments on commit b6a8aa9

Please sign in to comment.