diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-08-01 12:28:59 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-08-01 12:28:59 +0200 |
commit | 8b6981c6ebf8286eb690764aaa8165a7a398c8da (patch) | |
tree | 312297eb7801da246f1b7494bdeec3198e0df63a /src/main/java/de/pixart/messenger/xmpp/jingle | |
parent | 0f34c0ab3ed0ce3c98dc4d835c7897e8d533f7e6 (diff) |
fixed otr jingle file size reporting
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp/jingle')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java index bf92a2c30..2f8d66306 100644 --- a/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/jingle/JingleConnection.java @@ -463,11 +463,7 @@ public class JingleConnection implements Transferable { } } this.mFileOutputStream = AbstractConnectionManager.createOutputStream(this.file, message.getEncryption() == Message.ENCRYPTION_AXOLOTL); - if (message.getEncryption() == Message.ENCRYPTION_OTR && Config.REPORT_WRONG_FILESIZE_IN_OTR_JINGLE) { - this.file.setExpectedSize((size / 16 + 1) * 16); - } else { - this.file.setExpectedSize(size); - } + this.file.setExpectedSize(size); Log.d(Config.LOGTAG, "receiving file: expecting size of " + this.file.getExpectedSize()); } else { this.sendCancel(); |