aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/utils/MimeUtils.java
diff options
context:
space:
mode:
authorTheOneric <Nyff@protonmail.ch>2019-11-15 18:33:58 +0100
committerChristian Schneppe <kriztan@users.noreply.github.com>2019-11-15 18:33:58 +0100
commitba225074d5dc89173b8058660535d417c156de2e (patch)
tree501b63180b8d52bedce478e303bebfe3b29f5512 /src/main/java/de/pixart/messenger/utils/MimeUtils.java
parent60b96381f3831f8a53a084a086ae0d6645f5bea6 (diff)
Fix empty grey box for unknown file types (#405)
Previously if files, whose mime-type was not recognized by MimeUtils, were being sent to a Pix-Art-Client only a grey box without text would be shown. With this commit the general "open file" text is now shown for these files. Previously this text was only shown for files with recognized mime-types, not being specially handled (like images). Also the Advanced SSA (*.ass) subtitle format was added to MimeUtils as 'text/plain'.
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils/MimeUtils.java')
-rw-r--r--src/main/java/de/pixart/messenger/utils/MimeUtils.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/MimeUtils.java b/src/main/java/de/pixart/messenger/utils/MimeUtils.java
index af170b082..e02dd4c75 100644
--- a/src/main/java/de/pixart/messenger/utils/MimeUtils.java
+++ b/src/main/java/de/pixart/messenger/utils/MimeUtils.java
@@ -323,6 +323,7 @@ public final class MimeUtils {
add("text/plain", "text");
add("text/plain", "diff");
add("text/plain", "po"); // reserve "pot" for vnd.ms-powerpoint
+ add("text/plain", "ass");
add("text/richtext", "rtx");
add("text/rtf", "rtf");
add("text/text", "phps");