stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Messages not being auto marked as read while inside channel on android

Open croche-gl opened this issue 5 years ago • 12 comments

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 re-open the channel.

This doesn't make much sense, if you have a channel open, then presumably you are reading the messages that are coming through, so these messages should be auto marked as read.

Dev environment info (please complete/provide the following information):

Package version. 2.9.0 Device/Emulator (android)

Steps to reproduce the behavior:

1.Go into a channel 2 send some messages to that channel from another device 3 go back to the channel list and notice that there are unread messages

Expected behavior Messages coming into a channel which you are currently looking at should mark those messages as read.

croche-gl avatar Feb 02 '21 13:02 croche-gl

Agent comment from Ryan Kavanaugh in Zendesk ticket #9069:

Hi,

Thanks for reaching out. I will look into this and get back to you shortly.

Best, Ryan

shodgetts avatar Feb 02 '21 14:02 shodgetts

Agent comment from Ryan Kavanaugh in Zendesk ticket #9069:

Hey, which version of the Stream React-Native SDK are you using? I see you put down package version 2.9.0, which I am guessing relates to your emulator, since we are currently at 2.1.4 for our React-Native SDK releases. Also, please let me know which organization you are with for tracking purposes when you have a chance.

shodgetts avatar Feb 02 '21 15:02 shodgetts

"stream-chat": "^2.9.0", "stream-chat-react-native": "^2.1.3", "stream-chat-react-native-core": "^2.1.1"

croche-gl avatar Feb 02 '21 15:02 croche-gl

I am from K4connect organization

croche-gl avatar Feb 02 '21 15:02 croche-gl

Agent comment from Ryan Kavanaugh in Zendesk ticket #9069:

Sounds good. Thank you for providing this information. Could you please upgrade you react-native sdk to 2.1.4 and see if the problem persists?

shodgetts avatar Feb 02 '21 19:02 shodgetts

I tried that but, unfortunately, the error stills there

croche-gl avatar Feb 02 '21 20:02 croche-gl

Agent comment from Ryan Kavanaugh in Zendesk ticket #9069:

Could you please check the read_events value under client.configs? It should be set to true. Out of the box, Stream chat does not have this behavior and it shouldn't be the case, so best guess is something happened to the config file at some point.

shodgetts avatar Feb 02 '21 23:02 shodgetts

where is that "client.configs" file located? I don't see it on your code.

croche-gl avatar Feb 03 '21 13:02 croche-gl

I checked using "channel.getConfig().read_events" and it is always true on android and also on ios.

croche-gl avatar Feb 03 '21 13:02 croche-gl

Agent comment from Ryan Kavanaugh in Zendesk ticket #9069:

Sure thing. Our docs pages on Client & Users for react-native can guide you here - https://getstream.io/chat/docs/react-native/init_and_users/?language=js. Please let me know if you have any questions. Also, feel free to reach out to [email protected]. You company is on a plan that allows you access to this channel and we may be able to provide you faster support on it.

shodgetts avatar Feb 03 '21 19:02 shodgetts

that doc page just talk about additional options like timeout or a url, does not mention the other options. Could you please provide me a url to that options? Also you said "Stream chat does not have this behavior and it shouldn't be the case" are you talking about to mark automatically the messages on the list like readed?

croche-gl avatar Feb 03 '21 19:02 croche-gl

Agent comment from Ryan Kavanaugh in Zendesk ticket #9069:

This request was closed and merged into request #9118 "Messages not being auto marked a...".

shodgetts avatar Feb 03 '21 20:02 shodgetts