Fix / preview/edit was shown for movies and gif
This commit is contained in:
parent
11c8da3717
commit
299cd9ced3
@ -19,7 +19,9 @@ package im.vector.app.features.attachments
|
|||||||
import org.matrix.android.sdk.api.session.content.ContentAttachmentData
|
import org.matrix.android.sdk.api.session.content.ContentAttachmentData
|
||||||
|
|
||||||
fun ContentAttachmentData.isPreviewable(): Boolean {
|
fun ContentAttachmentData.isPreviewable(): Boolean {
|
||||||
return type == ContentAttachmentData.Type.IMAGE || type == ContentAttachmentData.Type.VIDEO
|
// For now the preview only supports still image
|
||||||
|
return type == ContentAttachmentData.Type.IMAGE
|
||||||
|
&& listOf("image/jpeg", "image/png", "image/jpg").contains(getSafeMimeType() ?: "")
|
||||||
}
|
}
|
||||||
|
|
||||||
data class GroupedContentAttachmentData(
|
data class GroupedContentAttachmentData(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user