B1
December 9, 2024, 8:52am
1
I’m running into a similar bug that was reported in this GH issue .
Here’s my situation:
address 1 sends message to address 2
address 2 opens the conversation and does not see any messages
...
const { messages } = useMessages(conversation)
// messages is an empty array
const msgs = await conversation.messages()
// msgs contains 1 message
const lastMessage = useLastMessage(conversation.topic);
// lastMessage contains the same message as in msgs
jha
December 10, 2024, 7:26pm
2
Hi there @B1 ! Thank you for this post and so sorry to hear you are running into this issue.
I just chatted with eng about this and the xmtp-react SDK is still using XMTP V2. We are working on upgrading it to use XMTP V3 and it should be ready in Jan 2025.
If you are just starting to build for the web, we recommend that you take a look at the xmtp-browser SDK, which uses XMTP V3: xmtp-js/sdks/browser-sdk at main · xmtp/xmtp-js · GitHub
WDYT?
1 Like
B1
December 13, 2024, 8:17am
3
Hi @jha
Thanks for the feedback.
Unfortunately, I’m already using it in production (MVP). But since it’s an edge case, we’ll try to work around it.
1 Like