Message List - Design QA - Clean up preview text and use text fallback in the new Message Item UI
Description
The message preview in the new Message Item UI is currently showing character codes or encoded entities instead of clean, readable text. In addition, when a message does not include a plain text body, the preview may be empty even though other usable text content is available. The preview logic should be updated to always display a clean, user-friendly preview using the best available text source.
Expected
The message preview displays clean text without character codes or encoded artifacts. When plain text is unavailable, the preview falls back to other available text content, so a meaningful preview is still shown.
Actual
Character codes are visible in the preview, and some messages show no preview when plain text content is unavailable.
Steps to reproduce
- Turn on the feature flag
use_compose_for_message_list_itemsorenable_message_list_new_state - Navigate to the Message List.
- Locate a message whose preview includes encoded characters or character codes.
- Observe that the preview shows raw character codes instead of rendered text.
- Locate or open a message that does not include a plain text body but does contain other usable text content.
- Return to the Message List.
- Observe that the preview is empty or does not use the available text content.
Hi, I would like to work on this. I plan to trace the new message-item preview mapping, clean up encoded entities or character codes, add fallback selection when plain text is unavailable, and cover the behavior with focused tests. If that scope matches the issue, could you please assign it to me?
Hi @arpitagarwal1301, thanks for getting interested in helping us! Make sure to apply the changes to the legacy Message List as well!
You can turn on the feature flag use_compose_for_message_list_items by tapping the overflow menu (three vertical dots) and opening the "DEBUG: Feature Flags" screen.
Let me know if you need any other help!