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 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The same bug reproduces on UIKit as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

UIKit PR

@laevandus laevandus enabled auto-merge (squash) December 15, 2025 14:29
@github-actions
Copy link

Public Interface

🚀 No changes affecting the public interface.

@sonarqubecloud
Copy link

@Stream-SDK-Bot
Copy link
Collaborator

SDK Size

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

@Stream-SDK-Bot
Copy link
Collaborator

StreamChatSwiftUI XCSize

Object Diff (bytes)
ChatChannelViewModel.o +408

@laevandus laevandus merged commit 3d9a87f into develop Dec 16, 2025
11 checks passed
@laevandus laevandus deleted the fix/read-receipts-when-user-muted branch December 16, 2025 11:06
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.

6 participants