Skip to content

Conversation

@KhaledKamalA
Copy link

πŸ”— Issue Links

Add related Linear and/or GitHub issues, if applicable.

🎯 Goal

Ensure channel-related numbers update correctly by properly observing changes in ChatChannelInfoViewModel.

πŸ“ Summary

  • Annotated ChatChannelInfoViewModel with @ObservedObject
  • Fixed an issue where channel numbers were not updating in the UI
  • Ensured the view reacts to state changes as expected
  • No UI or behavioral changes outside of state updates

πŸ›  Implementation

  • Updated ChatChannelInfoViewModel usage to be annotated with @ObservedObject
  • Ensured published properties trigger SwiftUI view updates
  • Kept the fix minimal and scoped to state observation only
  • No impact on performance or existing view lifecycle

🎨 Showcase

The screenshots below show the behavior before and after fixing the channel numbers update issue.

Before After
Channel Info – Before Channel Info – After

πŸ§ͺ Manual Testing Notes

  1. Open Channel Info screen
  2. Perform an action that updates channel-related numbers (e.g. members, unread count)
  3. Verify the numbers update immediately without navigating away
  4. Confirm no regressions in Channel Info behavior

β˜‘οΈ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change should be manually QAed
  • Changelog is updated with client-facing changes
  • Changelog is updated with new localization keys
  • New code is covered by unit tests
  • Documentation has been updated in the docs-content repo

@KhaledKamalA KhaledKamalA requested a review from a team as a code owner December 19, 2025 12:14
@KhaledKamalA KhaledKamalA changed the title Fix: annotate ChatChannelInfoViewModel with ObservedObject to update … Annotate ChatChannelInfoViewModel with ObservedObject to update … Dec 19, 2025
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.

1 participant