fixing recursive call
This commit is contained in:
parent
00059e7b70
commit
aa3631f328
|
@ -75,7 +75,7 @@ fun MultiPickerBaseType.toContentAttachmentData(): ContentAttachmentData {
|
||||||
return when (this) {
|
return when (this) {
|
||||||
is MultiPickerImageType -> toContentAttachmentData()
|
is MultiPickerImageType -> toContentAttachmentData()
|
||||||
is MultiPickerVideoType -> toContentAttachmentData()
|
is MultiPickerVideoType -> toContentAttachmentData()
|
||||||
is MultiPickerAudioType -> toContentAttachmentData()
|
is MultiPickerAudioType -> toContentAttachmentData(isVoiceMessage = false)
|
||||||
is MultiPickerFileType -> toContentAttachmentData()
|
is MultiPickerFileType -> toContentAttachmentData()
|
||||||
else -> throw IllegalStateException("Unknown file type")
|
else -> throw IllegalStateException("Unknown file type")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue