Skip to content

Fix the wrong voice recording label in the channel list item#6134

Open
andremion wants to merge 1 commit intodevelopfrom
AND-1046-fix-wrong-voice-recording-label-in-message-preview
Open

Fix the wrong voice recording label in the channel list item#6134
andremion wants to merge 1 commit intodevelopfrom
AND-1046-fix-wrong-voice-recording-label-in-message-preview

Conversation

@andremion
Copy link
Contributor

@andremion andremion commented Feb 6, 2026

Goal

Fix the wrong voice recording label in the channel list item. #6045

Implementation

Show Voice Message instead of the filename in the channel list item when the message contains an audio recording.

Note

This is a quick-win. In the v7 release we might align the entire message preview formatter with compose and other platform SDKs

🎨 UI Changes

Before After
img img

Testing

  • Open the channel list where some channels' last messages are an audio recording.

Summary by CodeRabbit

  • New Features
    • Audio messages now display with dedicated formatting that clearly identifies audio content. Audio-reply information appears in italics within message previews and thread discussions instead of standard text and attachment previews.

@andremion andremion added the bug Something isn't working label Feb 6, 2026
@andremion andremion marked this pull request as ready for review February 6, 2026 11:20
@andremion andremion requested a review from a team as a code owner February 6, 2026 11:20
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

PR checklist ✅

All required conditions are satisfied:

  • Title length is OK (or ignored by label).
  • At least one pr: label exists.
  • Sections ### Goal, ### Implementation, and ### Testing are filled.

🎉 Great job! This PR is ready for review.

@coderabbitai
Copy link

coderabbitai bot commented Feb 6, 2026

Walkthrough

Three message preview formatting components now handle audio recordings. When a message contains audio, the preview displays a localized audio-info string styled with italics instead of regular text or attachments, addressing incorrect voice recording label display in channel list items.

Changes

Cohort / File(s) Summary
Audio Message Preview Handling
stream-chat-android-ui-components/src/main/kotlin/io/getstream/chat/android/ui/feature/messages/preview/internal/MessagePreviewView.kt, stream-chat-android-ui-components/src/main/kotlin/io/getstream/chat/android/ui/feature/threads/.../ThreadItemViewHolder.kt, stream-chat-android-ui-components/src/main/kotlin/io/getstream/chat/android/ui/helper/MessagePreviewFormatter.kt
Added imports for hasAudioRecording and italicize. When a message contains audio, preview formatting short-circuits to return a localized, italicized audio-info string. Non-audio messages continue with existing attachment and text processing logic. Changes ensure consistent audio message handling across message preview, thread list, and formatter components.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested labels

pr:bug

Suggested reviewers

  • gpunto

Poem

🐰 A voice so clear, but the label was wrong,
Through previews and threads, we've righted the song!
Audio messages now sing in italic delight,
Three components aligned, the formatting's right. ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: fixing the voice recording label display in channel list items.
Description check ✅ Passed The description includes the Goal, Implementation, UI Changes with before/after screenshots, and Testing sections, mostly following the template structure.
Linked Issues check ✅ Passed Changes correctly implement the objective to display 'Voice Message' label instead of filenames for audio recordings in message previews across three components [AND-1046].
Out of Scope Changes check ✅ Passed All changes are directly scoped to fixing audio message preview formatting in channel list and thread items, with no unrelated modifications detected.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch AND-1046-fix-wrong-voice-recording-label-in-message-preview

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@andremion andremion added pr:bug Bug fix ui-components and removed bug Something isn't working labels Feb 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

SDK Size Comparison 📏

SDK Before After Difference Status
stream-chat-android-client 5.26 MB 5.26 MB 0.00 MB 🟢
stream-chat-android-offline 5.48 MB 5.48 MB 0.00 MB 🟢
stream-chat-android-ui-components 10.63 MB 10.63 MB 0.00 MB 🟢
stream-chat-android-compose 12.85 MB 12.85 MB 0.00 MB 🟢

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant