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
totalUnreadCount is always 0 on app launch #659
Comments
Hey @jasnicaa, I am looking into this. |
HI guys, so I was just testing this fix, and still is not working for me as expected. I enter the app and send a message from another account and when debugging I can see that in the currentUser totalUnreadCount has updated while totalUnreadCount from the Stream is zero. It only updates when I enter the channel. |
this hasn't been released yet |
yeah that was another issue |
Do you have any workaround of this issue before the release? |
I can't think of nothing right now, but we'll probably publish the next release early next week |
@rickgrade3 If you are using bloc you can create your own totalUnreadCount from currentUser.totalUnreadCount - this number is updating correctly, I started this way but decided to wait for an update |
So I am trying to get the total unread count from the stream and data it is always 0 at first, although when I inspect the client I can see under totalUnreadCount that there is a number. I want to show the number of unread messages in the tabBar when a user enters the app without the need to enter the channel itself.
As you can see on the image both totalUnreadCount and unreadChannels are zero and totalUnreadCount is 3.
Am I missing something here?
The text was updated successfully, but these errors were encountered: