Skip to content

Typing users did not update reliably in the message list #591

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

laevandus
Copy link
Contributor

@laevandus laevandus commented Aug 29, 2024

🔗 Issue Link

Resolves: PBE-5805

🎯 Goal

  • Fix an issue where multiple typing users were not displayed

🛠 Implementation

After verifying that LLC correctly propagates the typing users change and ChatChannelController.channel returning multiple users the issue had to be on the view side. The issue is that when channel changes, ChatChannelViewModel does not propagate the change and SwiftUI view did not know that it needs to redisplay.

🧪 Testing

  1. Run the demo app on 3 different simulators/devices
  2. Open the same channel on all of the simulators/devices
  3. 2 of them are typing
    Result: on the third device we see typing indicator saying user x and 1 more are typing

☑️ Checklist

  • I have signed the Stream CLA (required)
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Affected documentation updated (docusaurus, tutorial, CMS (task created)

… model did not propagate channel changes to the view
@laevandus laevandus added bug Something isn't working 🤞 Ready for QA labels Aug 29, 2024
@laevandus laevandus requested a review from a team as a code owner August 29, 2024 07:25
@Stream-SDK-Bot
Copy link
Collaborator

SDK Size

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

Copy link

Copy link
Contributor

@martinmitrevski martinmitrevski left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@laevandus
Copy link
Contributor Author

@testableapple and I did a manual testing together.

@laevandus laevandus merged commit 85d6ec5 into develop Aug 30, 2024
11 checks passed
@laevandus laevandus deleted the fix/typing-indicators branch August 30, 2024 07:23
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Sep 12, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working ✅ QAed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants