-
Notifications
You must be signed in to change notification settings - Fork 211
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
Quoted message preview did not update when the quoted message was deleted #3553
base: develop
Are you sure you want to change the base?
Conversation
@@ -170,7 +170,7 @@ open class QuotedChatMessageView: _View, ThemeProvider, SwiftUIRepresentable { | |||
? appearance.colorPalette.popoverBackground | |||
: appearance.colorPalette.highlightedAccentBackground1 | |||
|
|||
setText(message.text) | |||
setText(message.textContent ?? "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
textContent
internally checks for the deleted state
isSentByCurrentUser: true | ||
) | ||
view.content = QuotedChatMessageView.Content(message: message, avatarAlignment: .leading) | ||
AssertSnapshot(view) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure how to force the snapshot test to capture the grey text color. This works OK in the demo app, but snapshot test uses whatever textView.textColor
is. I did not want to overcomplicate this so I left it as is. Seems to be related to order of things when view is rendered.
SDK Size
|
SDK Performance
|
a7edef7
to
cc67896
Compare
SDK Size
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! ✅ Just added suggestion improvement to the changelog
Quality Gate passedIssues Measures |
0f271ea
to
c62daad
Compare
🔗 Issue Links
Resolves IOS-478
🎯 Goal
When quoted message was deleted, then it did not refresh
📝 Summary
🛠 Implementation
Manually trigger refreshes for quoted by messages (messages showing the quoted message view)
🎨 Showcase
🧪 Manual Testing Notes
☑️ Contributor Checklist
docs-content
repo