fixing recursive call

This commit is contained in:
Adam Brown 2021-11-24 10:58:21 +00:00
parent 00059e7b70
commit aa3631f328
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ fun MultiPickerBaseType.toContentAttachmentData(): ContentAttachmentData {
return when (this) {
is MultiPickerImageType -> toContentAttachmentData()
is MultiPickerVideoType -> toContentAttachmentData()
is MultiPickerAudioType -> toContentAttachmentData()
is MultiPickerAudioType -> toContentAttachmentData(isVoiceMessage = false)
is MultiPickerFileType -> toContentAttachmentData()
else -> throw IllegalStateException("Unknown file type")
}