ephemeraHQ / xmtp-inbox-web

XMTP Inbox web chat app
https://dev.xmtp.chat
MIT License
33 stars 42 forks source link

Consent is being re-prompted on every message #430

Open neekolas opened 9 months ago

neekolas commented 9 months ago

Describe the bug

After giving consent to a new conversation, the user is re-prompted to approve every time a message comes in.

To Reproduce Steps to reproduce the behavior:

  1. Go to dev.xmtp.chat in Browser 1
  2. Go to dev.xmtp.chat in Browser 2, using a different wallet that has never communicated with the first wallet
  3. Send a message to Browser 1's wallet address from Browser 2
  4. Open the conversation in Browser 1 and approve consent
  5. Send a second message from Browser 2
  6. See a new consent approval popup

Expected behavior After giving consent once, the user should never be prompted again

Screenshots

https://github.com/xmtp-labs/xmtp-inbox-web/assets/65710/333eac06-6570-4d08-a163-41f2885e7b60

Device and browser: Arc and Firefox latest on MacOS

Additional context I tested this on dev.xmtp.chat, so worth checking to see if this happens in prod