Skip to content

Conversation

@OlivellaO
Copy link
Collaborator

@OlivellaO OlivellaO commented Jan 26, 2026

BugWPB-21395 [iOS] "Cells" text from system message seems moving to next line when there is space avaiable.

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:

  • Create a conversation with Cells enabled
  • Observe system message

Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 26, 2026

Test Results

    1 files    301 suites   2m 8s ⏱️
1 867 tests 1 838 ✅ 27 💤 2 ❌
1 867 runs  1 840 ✅ 27 💤 0 ❌

For more details on these failures, see this check.

Results for commit 00307e1.

♻️ This comment has been updated with latest results.

@OlivellaO OlivellaO force-pushed the fix/selfdeleting-system-message-padding branch from abcc40e to 00307e1 Compare January 26, 2026 09:54
Copy link
Collaborator

@WilhelmOks WilhelmOks left a 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,
Copy link
Collaborator

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)?

Copy link
Collaborator Author

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

Copy link
Contributor

@jullianm jullianm left a comment

Choose a reason for hiding this comment

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

LGTM

@jullianm
Copy link
Contributor

@OlivellaO don't forget to retarget to 4.14

@samwyndham samwyndham removed their request for review January 28, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants