Skip to content

Commit

Permalink
chore: Revert modification
Browse files Browse the repository at this point in the history
  • Loading branch information
tevincent committed Nov 14, 2024
1 parent c9af7bd commit 5b38986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ package com.infomaniak.swisstransfer.ui.utils
import com.infomaniak.library.filetypes.FileType
import com.infomaniak.multiplatform_swisstransfer.common.interfaces.ui.FileUi

val FileUi.fileType: FileType get() = FileType.guessFromFileName(fileName)
val FileUi.fileType: FileType get() = mimeType?.let { FileType.guessFromMimeType(it) } ?: FileType.guessFromFileName(fileName)

val FileUi.hasPreview: Boolean get() = fileType == FileType.IMAGE

0 comments on commit 5b38986

Please sign in to comment.