diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-04-02 21:45:19 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-04-02 21:45:19 +0200 |
commit | 95521e80c1c029b02eddf5799cd23d0268ae4a1c (patch) | |
tree | d1bf1fdca1cf9bf9465d639d50c8ce10817422f6 /src/main/java/de/pixart/messenger/services/XmppConnectionService.java | |
parent | a6aa3be7a4f658350254e86f84391534c0502653 (diff) |
fixed duplicate file sending
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index afed51f85..85ad64206 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -521,6 +521,7 @@ public class XmppConnectionService extends Service { } final String mimeType = MimeUtils.guessMimeTypeFromUri(this, uri); final String compressPictures = getCompressPicturesPreference(); + if ("never".equals(compressPictures) || ("auto".equals(compressPictures) && getFileBackend().useImageAsIs(uri)) || (mimeType != null && mimeType.endsWith("/gif"))) { |