relaycc / receiver

Relay Receiver is a React library that makes it easy to add Web3 messaging to your website.
http://www.demo.relay.cc
MIT License
39 stars 2 forks source link

XMTP Account not loading #78

Closed seanonchain closed 2 years ago

seanonchain commented 2 years ago

Is there an existing issue for this?

Current Behavior

My seanwbren.eth account is not message-able after the user signs in to XMTP.

Screen Shot 2022-09-23 at 12 04 20 PM Screen Shot 2022-09-23 at 12 04 27 PM

Seems to be conflating my account with the uniswap.eth account when this non-happy-path initialization flow is used.

Expected Behavior

The seanwbren ENS avatar loads, and the XMTP identity loads and I can message.

Steps To Reproduce

  1. Go to sybil.relay.cc//#/delegates/uniswap/0x0cb27e883E207905AD2A94F9B6eF0C7A99223C37
  2. Click bottom right message icon. don't initialize
  3. Click Message on my profile to message seanwbren.eth
  4. Initialize XMTP
seanonchain commented 2 years ago

Alternate reproduction flow.

  1. Go to sybil.relay.cc//#/delegates/uniswap/0x0cb27e883E207905AD2A94F9B6eF0C7A99223C37
  2. Click Message on my profile to message seanwbren.eth
  3. Initialize XMTP
  4. Observe message is working as intended.
  5. Minimize or click bottom right icon.
  6. Uniswap profile loads, and is not on the network.
  7. Click to message seanwbren.eth again, and it says "not on xmtp network"
seanonchain commented 2 years ago

3 alternate flow:

  1. On sybil.relay.cc click bottom right icon.
  2. Initialize XMTP and sign.
  3. Click to go back to inbox, then new message.
  4. Enter vdp.eth or other address.
  5. Conversation loads.
  6. Click "message" button next to a16z

Observe address field changes, but preserves ENS avatar and messages.

seanonchain commented 2 years ago

I think there's some check we can do on the account load step to prevent these issues, marking as P0 for Sybil PR but def timebox if no headway / mysterious cause.

seanonchain commented 2 years ago

@killthebuddh4 all 3 of these are fixed now

killthebuddh4 commented 2 years ago

Closed by ?? :)