Use voice message player also for audio messages

Closes https://github.com/SchildiChat/SchildiChat-android/issues/88

Change-Id: I815a039dd638b7ec7dfcf186777e2042814d26a5
This commit is contained in:
SpiritCroc 2021-09-23 18:27:15 +02:00
parent eadc990675
commit e3b590bb8e
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ class MessageItemFactory @Inject constructor(
is MessageVideoContent -> buildVideoMessageItem(messageContent, informationData, highlight, callback, attributes) is MessageVideoContent -> buildVideoMessageItem(messageContent, informationData, highlight, callback, attributes)
is MessageFileContent -> buildFileMessageItem(messageContent, highlight, attributes) is MessageFileContent -> buildFileMessageItem(messageContent, highlight, attributes)
is MessageAudioContent -> { is MessageAudioContent -> {
if (messageContent.voiceMessageIndicator != null) { if (true || messageContent.voiceMessageIndicator != null) {
buildVoiceMessageItem(params, messageContent, informationData, highlight, attributes) buildVoiceMessageItem(params, messageContent, informationData, highlight, attributes)
} else { } else {
buildAudioMessageItem(messageContent, informationData, highlight, attributes) buildAudioMessageItem(messageContent, informationData, highlight, attributes)