Skip to content

Fix error and pending states when editing a message #840

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

Merged

Conversation

nuno-vieira
Copy link
Member

@nuno-vieira nuno-vieira commented May 27, 2025

🔗 Issue Links

https://linear.app/stream/issue/IOS-846/homebase-error-indicator-not-shown-when-editing-message-fails

🎯 Goal

  • Fix error indicator not shown when editing a message fails
  • Fix "clock" icon not shown when message is syncing (pending to be edited)
  • Fix read indicator shown for failed edited messages
  • Bonus: Fixes small regression introduced by the MessageViewModel. Editing the message while offline was not updating the message instantly.

🧪 Manual Testing Notes

  1. Disable Wi-Fi
  2. Edit a message
  3. Clock icon show appear
  4. After some time, error indicator should appear
  5. The read indicator (checkmark) should NOT appear as well

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

@nuno-vieira nuno-vieira requested a review from a team as a code owner May 27, 2025 18:17
Comment on lines +21 to +27
guard isDeleted == false else {
return false
}

if isBounced {
return true
}
Copy link
Member Author

Choose a reason for hiding this comment

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

We have this duplicated from UIKit, so I copied the most recent version. The weird thing, is that we were not using this property at all. It most likely could be moved to the LLC in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, looks like an oversight. Would be nice to do so indeed.

@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented May 27, 2025

SDK Size

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

Copy link

Copy link
Contributor

@laevandus laevandus left a comment

Choose a reason for hiding this comment

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

✅ QAd the changes and did not experience any issues.

@laevandus laevandus merged commit 71f50b9 into develop May 28, 2025
11 checks passed
@laevandus laevandus deleted the fix/error-indicator-not-shown-when-edit-message-fails branch May 28, 2025 08:24
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants