Benoit Marty 2021-07-09 21:49:37 +02:00
parent 79f4053ab4
commit 2ca0a99dce
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@ import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import org.matrix.android.sdk.api.session.events.model.Content
import org.matrix.android.sdk.api.session.room.model.relation.RelationDefaultContent
import org.matrix.android.sdk.api.util.JsonDict
import org.matrix.android.sdk.internal.crypto.model.rest.AudioWaveformInfo
import org.matrix.android.sdk.internal.crypto.model.rest.EncryptedFileInfo
@ -61,7 +62,7 @@ data class MessageAudioContent(
/**
* Indicates that is a voice message.
*/
@Json(name = "org.matrix.msc2516.voice") val voiceMessageIndicator: Any? = null
@Json(name = "org.matrix.msc3245.voice") val voiceMessageIndicator: JsonDict? = null
) : MessageWithAttachmentContent {
override val mimeType: String?

View File

@ -303,7 +303,7 @@ internal class LocalEchoEventFactory @Inject constructor(
duration = attachment.duration?.toInt(),
waveform = attachment.waveform
),
voiceMessageIndicator = if (!isVoiceMessage) null else Any()
voiceMessageIndicator = if (!isVoiceMessage) null else emptyMap()
)
return createMessageEvent(roomId, content)
}