Code Monkey home page Code Monkey logo

Comments (5)

jonahhugit avatar jonahhugit commented on July 30, 2024

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.

nuno-vieira avatar nuno-vieira commented on July 30, 2024

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.

jonahhugit avatar jonahhugit commented on July 30, 2024

from stream-chat-swift.

nuno-vieira avatar nuno-vieira commented on July 30, 2024

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.

jonahhugit avatar jonahhugit commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.