-
Notifications
You must be signed in to change notification settings - Fork 25
fix: update self-deleting system message - WPB-21395 #4186
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
base: develop
Are you sure you want to change the base?
Conversation
Test Results 1 files 301 suites 2m 8s ⏱️ For more details on these failures, see this check. Results for commit 00307e1. ♻️ This comment has been updated with latest results. |
abcc40e to
00307e1
Compare
WilhelmOks
left a comment
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.
nice work
|
|
||
| @available(*, deprecated, message: "Use `init(text:style:color)` instead") | ||
| init( | ||
| attributedText: NSAttributedString, |
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.
question: will the label still adapt when the preferred content size is changed (in iOS settings)?
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.
Yes, i've test it and it will
jullianm
left a comment
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
|
@OlivellaO don't forget to retarget to 4.14 |
Issue
When creating a chat with "Cells" enabled, the self-deleting message was not using the fill width available.
In order to fix that and avoid creating more abstraction or system cells, i've updated DynamicFontLabel to allow to use Attributed String instead of just String (an extra init() was added)
Adding that extra init() we can use it for ConversationWarningSystemMessageCell (updating a bit ConversationEncryptionInfoSystemMessageCellDescription) instead of ConversationSystemMessageCell for ConversationTimerSystemMessageCellDescription.
This will use the full width of the parent view.
As needed extra, padding was added to ConversationWarningSystemMessageCell so text is not showing under the scrollbar.
As a nice to have extra, ConversationFileCollaborationSystemMessageCellDescription was updated to also use ConversationWarningSystemMessageCell so if the text gets too long it will also use the full width properly.
Testing
Steps to test:
Checklist
[WPB-XXX].UI accessibility checklist
If your PR includes UI changes, please utilize this checklist: