mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 02:37:46 +00:00
Merge pull request #317 from metaphore/svg-attachment-fix
Fix SVG Attachments
This commit is contained in:
commit
531a81aa56
@ -226,7 +226,9 @@ public class MediaUtil {
|
||||
}
|
||||
|
||||
public static boolean isImageType(String contentType) {
|
||||
return (null != contentType) && contentType.startsWith("image/");
|
||||
return (null != contentType)
|
||||
&& contentType.startsWith("image/")
|
||||
&& !contentType.contains("svg"); // Do not treat SVGs as regular images.
|
||||
}
|
||||
|
||||
public static boolean isAudioType(String contentType) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user