-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛] MessageList is not updated even though messages received over WS #2305
Comments
Hey @Jolville, is this working fine now? |
@khushal87 sorry this was closed automatically after I referenced it in a PR in a private repo. I've just bumped our stream package in the hopes that its fixed by #2479 - will give it a test and get back to you |
Yes, please give it a look and let us know. Thanks 😄 |
Hey @Jolville, can this be closed? |
Hi, I'm using version |
I've been chasing this issue after my users reported messages not being received. I can confirm it happens to me, too. Version For me, When I receive a new message after it is reconnected, it doesn't show there are new messages or the "jump to the latest message" button. I have to scroll up to force getting the latest messages, and then they show up. |
Updated, here's more specific reproduction steps because it was elusive.
|
Hi @fgauna12 , are you by any chance using Pretty sure that's exactly what happens on @abulnes-designli 's side too (since the scroll to bottom indicator is shown). |
@isekovanic No I am not setting
I have tried upgrading to the latest version and the same still occurred. |
Reports of users not receiving messages brought me here too. Sometimes users are forced to refresh to see new messages. It’s not everytime and not easily reproducible. |
I work with @Jolville and I used these steps to reproduce the issue. I can reproduce the issue by following the instructions that he provided. And these are the logs that accompany the error state: Hard to give a reproducible repro as the reproduction is not consistent. My instinct is that there some sort of race condition(haven't dug into the library tbh) that doesn't happen all the time. But hopefully, this helps the towards getting a resolution. |
Hi all, just a brief update: after wrestling with finding a way to reproduce this for quite some time I was finally able to find a reliable way to do so. Please stay tuned, we're working on finding the root cause for this and fixing it. Just wanted to let everyone know. |
Hi again folks, can you please try upgrading to Here's the changelog: https://github.com/GetStream/stream-chat-react-native/releases/tag/v5.43.1 |
@isekovanic Can you share your reproduction steps? |
They should be explained here, let me know if you need me to elaborate deeper. |
Issue
New messages (sometimes) aren't being rendered after reconnection events. We've looked into this on our side a fair bit and added some logging to check this wasn't a connection issue, and we can see
connection:onmessage() - onmessage callback
logs, but the message list component doesn't show them.Steps to reproduce
Steps to reproduce the behavior:
This doesn't happen consistently, but we were able to reproduce by
Occasionally, the messages sent from device B while device A was offline, as well as after it was back online, are never shown, until the component is unmounted/remounted by closing the screen.
Expected behavior
Messages should be shown.
Project Related Information
Customization
Click To Expand
No custom components, but here is how we're rendering the channel:
Offline support
Environment
Click To Expand
package.json
:react-native info
output:stream-chat-react-native
version you're using that has this issue:[email protected]
Additional context
We're also seeing some
connection:_errorFromWSEvent() - WS failed with code 1006
/connection:_errorFromWSEvent() - WS failed with code undefined
logs from our customers around the same time they were reporting this issue (the connection does seem to re-establish fine though)Screenshots
N./A
The text was updated successfully, but these errors were encountered: