stream-chat-react-native
stream-chat-react-native copied to clipboard
Messages not being auto marked as read while inside chat on iOS
When you open a channel, it immediately marks all messages as read. However, if you stay in that channel and talk to someone, all of the messages that get sent in that channel will stay marked as 'unread' until you make a scroll action on the screen or close/reopen.
Dev environment info (please complete/provide the following information):
Package version. 3.8.2 Device/Emulator (iOS): iPhone 12 - iOS 14.1
Steps to reproduce the behavior:
- Go into a chat from an ios device (user A) 2 Send some messages to that user from another device (user B) 3 Notice the read receipts for User B dont update until user A does a scroll action. Also if they exit the chat the messageslist will show unread messages for User A
Expected behavior Messages coming into a channel which you are currently looking at should mark those messages as read.
gz#19987
Hey @estampscvt I would recommend you to upgrade to v3.10.2, since we made some fixes around this in recent versions.
Please let me know if you are able to reproduce this on latest version.
@vishalnarkhede Thanks for the quick response. It is still persisting on the latest version unfortunately. I updated my comment with a bit more information about the test device I am using
Hey @estampscvt could you please check if the read events are enabled on your dashboard?
@vishalnarkhede read events are working when I make a scroll action on the messages list or exit/return. It is also working as expected on Android
Read events are enabled for our app

@raksahb could you share some screenrecording?
https://user-images.githubusercontent.com/91638012/156452717-56ce359a-12df-4e7d-9560-678a5b92dbd9.mov
@vishalnarkhede Here is a video with an iOS device on the left and android device on the right. You will see that when a chat is sent to the iOS device that the read receipt doesnt update for the android user, even after I send a follow up. The read receipt updates correctly from the opposite scenario. Then at the end I scroll on the screen of the iOS device and the read receipt finally updates.
So there seems to be some iOS specific issue
@estampscvt thanks for the screenrecording. Could you please confirm one more scenario for me?
I can see from the screen recording that the messages length is lesser than visible screen. Could you also please test it for the case when you have more messages than the visible screen height (basically when list is scrollable)?
@vishalnarkhede same issues in that scenario unfortunately
@vishalnarkhede We are just wondering if you have everything you need to determine if this is a bug
@estampscvt Are you still facing this issue?
@khushal87 Yes this is still occurring. We are on version 6.4 currently
Hey team! Please add your planning poker estimate with ZenHub @khushal87 @madsroskar @santhoshvai @vishalnarkhede
Hey @estampscvt we tried to reproduce this behavior, yet no success.
To pinpoint this issue as fast as possible, we would like to ask you to share a minimalistic repo where the problem is reproduced. The fastest way to achieve this is with the following command to create a new RN project with Stream chat in it:
npx react-native init MyApp --template stream-chat-react-native-template
Please then share a Github repo with us, where we can explore the issue ourselves.
I am closing this issue due to lack of response. Feel free to reopen if this occurs again