vector-im/element-ios/issues/4753 - Allow audio file attachments to be played back inline by reusing the existing voice message UI.

This commit is contained in:
Stefan Ceriu
2021-12-02 14:32:02 +02:00
committed by Stefan Ceriu
parent 66e900817e
commit d7acd090f5
4 changed files with 4 additions and 3 deletions
@@ -27,7 +27,7 @@ class VoiceMessageBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplaya
return
}
guard data.attachment.type == MXKAttachmentTypeVoiceMessage else {
guard data.attachment.type == MXKAttachmentTypeVoiceMessage || data.attachment.type == MXKAttachmentTypeAudio else {
fatalError("Invalid attachment type passed to a voice message cell.")
}