Conversation
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (32.25%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #3956 +/- ##
===========================================
- Coverage 45.57% 45.55% -0.02%
===========================================
Files 518 518
Lines 17959 17971 +12
Branches 3041 3044 +3
===========================================
+ Hits 8184 8186 +2
- Misses 8936 8946 +10
Partials 839 839
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
Built wire-android-staging-compat-pr-3956.apk is available for download |
|
Built wire-android-dev-debug-pr-3956.apk is available for download |
…udio-recording-and-playing-crashes-cherry-pick # Conflicts: # app/src/main/kotlin/com/wire/android/ui/home/conversations/messages/item/MessageContentAndStatus.kt # app/src/main/kotlin/com/wire/android/ui/home/conversations/model/messagetypes/audio/AudioMessageType.kt
|
|
Built wire-android-staging-compat-pr-3956.apk is available for download |
|
Built wire-android-dev-debug-pr-3956.apk is available for download |



This PR was automatically cherry-picked based on the following PR:
Original PR description:
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764The PR Description
What's new in this PR?
This PR contains fixes for two issues related to recording and playing audio messages:
https://wearezeta.atlassian.net/browse/WPB-16687
https://wearezeta.atlassian.net/browse/WPB-16835
Issues
The app crashes when attempting to send an audio recording for the second time because the user played the 1st recording before sending it.
The app crashes when attempting to play an audio message after sending it.
Causes (Optional)
MediaPlayerbeing released after closing or sending a message so it cannot be reused againMediaPlayeris not initialisedSolutions
MediaPlayerafter sending or closing, it can be reused then (the same instance is persisted as long as the view model exists)abandonExclusivefunction to abandonexclusiveFocusRequestand not regularfocusRequestTesting
How to Test
Steps to Reproduce:
1
-record an audio message
-play the recording before sending it
-send the audio message
-attempt to make another audio recording
2
-record an audio message
-send it
-attempt to play it from the audio message cell
Attachments (Optional)
record-play-send-and-record-again.mp4
play_after_uploading.mp4
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.