-
Notifications
You must be signed in to change notification settings - Fork 308
Fix messages from muted users increasing channel unread count #6061
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
base: develop
Are you sure you want to change the base?
Fix messages from muted users increasing channel unread count #6061
Conversation
SDK Size Comparison 📏
|
|
WalkthroughThis PR fixes a bug where messages from globally muted users were incorrectly incrementing the channel's unread count. A guard condition in the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (3)**/*.{kt,kts}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.kt📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/src/test/**/*.kt📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧬 Code graph analysis (1)stream-chat-android-state/src/test/java/io/getstream/chat/android/state/plugin/logic/channel/internal/ChannelStateLogicTest.kt (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |



🎯 Goal
Incoming messages from muted users don't increase the unread count server-side, so we shouldn't increase it client-side as well.
🛠 Implementation details
Add guard in
ChannelStateLogic.updateCurrentUserReadpreventing the unread count from increasing for messages from muted users.🎨 UI Changes
muted_before.mov
muted_after.mov
🧪 Testing
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.