mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 01:45:52 +03:00
Prefer testing attachment.waveform to see if it's a voice message
This commit is contained in:
parent
984112e83f
commit
db80ea6432
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue