Skip to content

Conversation

@laevandus
Copy link
Contributor

🔗 Issue Links

Fixes: IOS-1238

🎯 Goal

Fix reading messages from muted users

📝 Summary

  • Due to the unread count check we never marked the channel as read if a muted user sent a message (no unread count changes)

🧪 Manual Testing Notes

  1. User A mutes user B
  2. User B sends a message
  3. User A reads this message
    The message status is read and delivered

☑️ 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

}

private func sendReadEventIfNeeded(for message: ChatMessage) {
guard let channel, channel.unreadCount.messages > 0 else {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since unread count did not change when a muted user sent a message then we never called mark read

Copy link
Member

Choose a reason for hiding this comment

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

Do we have the same issue on UIKit? I think I introduced this logic recently in UIKit as well 🤔

@Stream-SDK-Bot
Copy link
Collaborator

SDK Size

title develop branch diff status
StreamChatSwiftUI 9.68 MB 9.68 MB 0 KB 🟢

@github-actions
Copy link

github-actions bot commented Dec 3, 2025

Public Interface

🚀 No changes affecting the public interface.

@Stream-SDK-Bot
Copy link
Collaborator

StreamChatSwiftUI XCSize

Object Diff (bytes)
ChatChannelViewModel.o +408

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 3, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants