Skip to content
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

Opening Pinned message or channel with new messages without showLoading: true throws exception #2095

Open
1 task done
ihijazi opened this issue Feb 2, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ihijazi
Copy link

ihijazi commented Feb 2, 2025

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS, Android

What version are you using?

9..2.0+1

What happened?

Say I'm pinned page then selected a pinned message. An exception is thrown:

Exception has occurred.
StateError (Bad state: No element)

Image

Steps to reproduce

Just set the showLoading to false

StreamChannel(
showLoading: false

If it's true, this doesn't happen. Tracing the issue, seems because the data isn't loaded (which is fair), but still I'd like to have no loading UI.

This can be reproduced also on your sample flutter app

Supporting info to reproduce

No response

Relevant log output

Flutter analyze output

Flutter doctor output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ihijazi ihijazi added the bug Something isn't working label Feb 2, 2025
@ihijazi
Copy link
Author

ihijazi commented Feb 3, 2025

Confirming similar behavior in the following scenario:

  1. I'm channels list page
  2. I get new message
  3. I open the channel

Similar exception. Goes away if showLoading: true

@ihijazi ihijazi changed the title Opening Pinned message without showLoading: true throws exception Opening Pinned message or channel with new messages without showLoading: true throws exception Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant