mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Prefer testing attachment.waveform to see if it's a voice message
This commit is contained in:
parent
984112e83f
commit
db80ea6432
@ -290,7 +290,7 @@ internal class LocalEchoEventFactory @Inject constructor(
|
||||
}
|
||||
|
||||
private fun createAudioEvent(roomId: String, attachment: ContentAttachmentData): Event {
|
||||
val isVoiceMessage = attachment.mimeType == "audio/ogg"
|
||||
val isVoiceMessage = attachment.waveform != null
|
||||
val content = MessageAudioContent(
|
||||
msgType = MessageType.MSGTYPE_AUDIO,
|
||||
body = attachment.name ?: "audio",
|
||||
|
Loading…
Reference in New Issue
Block a user