Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
neotheprogramist committed Nov 5, 2023
1 parent 485cbc7 commit 02b7453
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions web/src/app/chats/public/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,13 @@ export default function Profile({ params }: { params: { address: string } }) {
isLimited: false,
});

const { isRegistered, isRegistering, register } = useW3iAccount();

const { account, setAccount, isRegistered, isRegistering, register } =
useW3iAccount();
useEffect(() => {
if (!address) return;
// Convert the address into a CAIP-10 blockchain-agnostic account ID and update the Web3Inbox SDK with it
setAccount(`eip155:1:${address}`);
}, [address, setAccount]);
// In order to authorize the dapp to control subscriptions, the user needs to sign a SIWE message which happens automatically when `register()` is called.
// Depending on the configuration of `domain` and `isLimited`, a different message is generated.
const performRegistration = useCallback(async () => {
Expand Down

0 comments on commit 02b7453

Please sign in to comment.