VoiceMessage: Update MXKAttachmentType usage.

This commit is contained in:
SBiOSoftWhare
2022-01-26 16:02:24 +01:00
parent 46721e3a4c
commit b76c326a16
2 changed files with 2 additions and 2 deletions
@@ -85,7 +85,7 @@ class VoiceMessageAttachmentCacheManager {
}
func loadAttachment(_ attachment: MXKAttachment, numberOfSamples: Int, completion: @escaping (Result<VoiceMessageAttachmentCacheManagerLoadResult, Error>) -> Void) {
guard attachment.type == MXKAttachmentTypeVoiceMessage || attachment.type == MXKAttachmentTypeAudio else {
guard attachment.type == .voiceMessage || attachment.type == .audio else {
completion(Result.failure(VoiceMessageAttachmentCacheManagerError.invalidAttachmentType))
MXLog.error("[VoiceMessageAttachmentCacheManager] Invalid attachment type, ignoring request.")
return