Comments (5)
Here's some additional debugging statements we got our app to print out. for [0,0] on channel insertion, it looks correct, but a few moments later when the channel is updated, the unread messages go to 0?
StreamViewModel: Channel list changed
StreamViewModel: Channel inserted: messaging:!members-wTjPcfeby15F8k7KihkNiW5IdpDZYzkZy3zUZ5SvBr8 at index [0, 0]
Unread count: 4 messages, 0 mentions
StreamViewModel: Channel inserted: messaging:!members--MYcSJpkJBWmSP215gO0tPHuYdnUiegGAwcu0vE3nto at index [0, 1]
Unread count: 0 messages, 0 mentions
StreamViewModel: Channel inserted: messaging:!members-oRgAmUKFIG5T7ZEzyTwyUQn9qw-5LhqIoOLU_qwm-co at index [0, 2]
Unread count: 0 messages, 0 mentions
StreamViewModel: Channel list changed
StreamViewModel: Channel updated: messaging:!members-wTjPcfeby15F8k7KihkNiW5IdpDZYzkZy3zUZ5SvBr8 at index [0, 0]
Unread count: 0 messages, 0 mentions
StreamViewModel: Channel updated: messaging:!members--MYcSJpkJBWmSP215gO0tPHuYdnUiegGAwcu0vE3nto at index [0, 1]
Unread count: 0 messages, 0 mentions
StreamViewModel: Channel updated: messaging:!members-oRgAmUKFIG5T7ZEzyTwyUQn9qw-5LhqIoOLU_qwm-co at index [0, 2]
Unread count: 0 messages, 0 mentions
StreamViewModel: Channel list synchronized successfully
StreamViewModel: Updating initial unread counts for 3 channels
StreamViewModel: Initial unread count for channel !members-wTjPcfeby15F8k7KihkNiW5IdpDZYzkZy3zUZ5SvBr8: 0 messages, 0 mentions
StreamViewModel: Initial unread count for channel !members--MYcSJpkJBWmSP215gO0tPHuYdnUiegGAwcu0vE3nto: 0 messages, 0 mentions
StreamViewModel: Initial unread count for channel !members-oRgAmUKFIG5T7ZEzyTwyUQn9qw-5LhqIoOLU_qwm-co: 0 messages, 0 mentions
StreamViewModel: Channel list changed
StreamViewModel: Channel updated: messaging:!members-wTjPcfeby15F8k7KihkNiW5IdpDZYzkZy3zUZ5SvBr8 at index [0, 0]
Unread count: 0 messages, 0 mentions
from stream-chat-swift.
Hi @jonahhugit,
Can you just share the part where you load the unread messages? Both on the initial icon badge and per-channel item?
Thank you
from stream-chat-swift.
from stream-chat-swift.
Hi @jonahhugit,
As you might understand, we have many customers, and if we had to read the whole code of all customers we would not have time to build new features or fix bugs. When creating tickets, you should be direct to the point and not provide the whole code so that we can analyse it. It would probably take me a day to read and understand the whole integration code.
I hope you understand. If you need deeper help with the integration, I recommend reaching out to support here: https://getstream.io/contact/support/
Thank you,
Nuno
from stream-chat-swift.
Thanks Nuno - we made a ticket yesterday and we've linked this for the support engineers here if they need more context to diagnose :)
By the way, this is also happening in the Swift Tutorial example, so it's not only contained to our implementation (but our implementation IS very vanilla - it's basically the tutorial example with a different channel header). That implementation (following the exact steps here) on iOS 17.5 doesn't show unread counts at all in the channel list -- but new messages do show up as they come in.
Appreciate your help!
from stream-chat-swift.
Related Issues (20)
- Upload Image to GetStream CDN HOT 1
- See Original and Translated Message HOT 6
- Message Search Not Working HOT 11
- Custom subview of ChatMessageContentView is not sized correctly HOT 5
- TokenProvider not triggering refresh and causing infinite API calls HOT 5
- Is it possible for me to query a channel to direct message only? HOT 1
- Test
- Mute intervals for channels doesn't seem to work HOT 4
- Extra Data not able to search using contain key it alway give blank response (UserListFilterScope) HOT 2
- Message Search Not Working HOT 1
- Search Channel By User Name HOT 1
- Links Are Not Clickable HOT 2
- How to Customize Search? HOT 1
- Hard Delete a User and its Channels HOT 1
- Chat link previews not working for Twitter HOT 1
- isSilent messages are incrementing the unread count HOT 2
- Crash Index out of range on LazyCachedMapCollection HOT 1
- didChangeChannels on ListChange type .update (or backend?) marking all conversations with unread messages read HOT 5
- WebSocket Does Not Reconnect When App Resumes from Background (Guest User) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stream-chat-swift.