diff --git a/wallets/react-wallet-chat/src/hooks/useInitialization.ts b/wallets/react-wallet-chat/src/hooks/useInitialization.ts index 5c5ca85..a47a343 100644 --- a/wallets/react-wallet-chat/src/hooks/useInitialization.ts +++ b/wallets/react-wallet-chat/src/hooks/useInitialization.ts @@ -21,6 +21,8 @@ export default function useInitialization() { await createSignClient() await createChatClient() + await chatClient.register({ account: `eip155:1:${eip155Addresses[0]}` }) + console.log('[Chat] registered address %s on keyserver', `eip155:1:${eip155Addresses[0]}`) setInitialized(true) } catch (err: unknown) { diff --git a/wallets/react-wallet-chat/src/pages/chats.tsx b/wallets/react-wallet-chat/src/pages/chats.tsx index 2aa120a..00a2a52 100644 --- a/wallets/react-wallet-chat/src/pages/chats.tsx +++ b/wallets/react-wallet-chat/src/pages/chats.tsx @@ -21,11 +21,8 @@ export default function ChatsPage() { const [chatInvites, setChatInvites] = useState([]) - const { eip155Address } = useSnapshot(SettingsStore.state) - const initChatClient = async () => { console.log(chatClient) - await chatClient.register({ account: `eip155:1:${eip155Address}` }) console.log('chatInvites on load:', chatClient.chatInvites.getAll()) console.log('chatThreads on load:', chatClient.chatThreads.getAll())