Skip to content

Conversation

xsahil03x
Copy link
Member

Description of the pull request

Fixed StreamMessageInput exception: Updated the StreamMessageInput widget to handle cases where the Channel is not initialized. This change introduces a conditional logic using a switch statement to ensure the widget behaves correctly even when channel.state is null. (packages/stream_chat_flutter/lib/src/message_input/stream_message_input.dart)

Copy link
Contributor

@Brazol Brazol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

codecov bot commented May 19, 2025

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 63.21%. Comparing base (fa3d0af) to head (ee4c4eb).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...er/lib/src/message_input/stream_message_input.dart 83.33% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2258   +/-   ##
=======================================
  Coverage   63.21%   63.21%           
=======================================
  Files         402      402           
  Lines       25224    25224           
=======================================
  Hits        15945    15945           
  Misses       9279     9279           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xsahil03x xsahil03x merged commit 988bd27 into master May 19, 2025
16 checks passed
@xsahil03x xsahil03x deleted the fix/message-input-with-non-initialized-channel branch May 19, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants