From 70bde5f4fa9d52d96c6d9e1600a7688b90868925 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 13 Nov 2015 14:01:19 -0800 Subject: [PATCH] Update libaxolotl // FREEBIE --- js/libtextsecure.js | 2 +- libtextsecure/libaxolotl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 932439647..7895ba1e6 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37500,7 +37500,7 @@ window.axolotl.protocol = function(storage_interface) { function getPaddedMessageLength(messageLength) { var messageLengthWithTerminator = messageLength + 1; - var messagePartCount = messageLengthWithTerminator / 160; + var messagePartCount = Math.trunc(messageLengthWithTerminator / 160); if (messageLengthWithTerminator % 160 != 0) { messagePartCount++; diff --git a/libtextsecure/libaxolotl.js b/libtextsecure/libaxolotl.js index b7b4462fc..2f15bb0b4 100644 --- a/libtextsecure/libaxolotl.js +++ b/libtextsecure/libaxolotl.js @@ -37402,7 +37402,7 @@ window.axolotl.protocol = function(storage_interface) { function getPaddedMessageLength(messageLength) { var messageLengthWithTerminator = messageLength + 1; - var messagePartCount = messageLengthWithTerminator / 160; + var messagePartCount = Math.trunc(messageLengthWithTerminator / 160); if (messageLengthWithTerminator % 160 != 0) { messagePartCount++;