VoiceMessage: Update MXKAttachmentType usage.

This commit is contained in:
SBiOSoftWhare
2022-01-26 16:02:24 +01:00
parent f9cee67cd1
commit 3128bbd6df
2 changed files with 2 additions and 2 deletions
@@ -27,7 +27,7 @@ class VoiceMessageBubbleCell: SizableBaseBubbleCell, BubbleCellReactionsDisplaya
return
}
guard data.attachment.type == MXKAttachmentTypeVoiceMessage || data.attachment.type == MXKAttachmentTypeAudio else {
guard data.attachment.type == .voiceMessage || data.attachment.type == .audio else {
fatalError("Invalid attachment type passed to a voice message cell.")
}