brave/brave-talk

Web3 Talk should recognize the correct account that is used to connect to the site

srirambv opened this issue · 3 comments

Description

Visiting a Web3 talk room automatically recognizes only the first account. If the user connects to a different account it isn't automatically updated

Steps to reproduce

  1. Create a Wallet on Beta and host a Web3 call using that wallet
  2. Create a Wallet on Nightly, add 2 accounts to the wallet
  3. Open the Web3 talk link in Nightly, automatically detects the first account of the wallet and shows the address on the page
  4. Click on Join web3 call
  5. Brings up the connect account modal on wallet
  6. Select the 2nd account and connect to the site
  7. Page continues to show the account 1 address
  8. Click Join Web3 call, Shows Error signing message but console throws invalid account message
  9. Reload the page
  10. Now shows the correct account address that is connected
  11. Click on Join web3 call
  12. Brings up the message sign prompt to join the call and it works

Actual Result

Invalid.Account.mp4

Expected Result

Should detect the correct account when showing the page so user doesn't run into this issue

Additional Info

cc: @mrose17 @johnhalbert

Thanks! The STR also finds the problem for me. It looks like we're missing an event on the address change, but i'm still looking into it.

@srirambv this is ready for re-test.

This is fixed. Able to see the correct account that is selected to connect to the site

908.mp4