From 9031b4c10c7b803c57fd887504c836c174972d5c Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 8 Dec 2015 10:18:58 -0800 Subject: [PATCH] Update libaxolotl Fixes #477 // 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 e4903f2a..78206dc6 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -34879,7 +34879,7 @@ window.axolotl.protocol = function(storage_interface) { function getPaddedMessageLength(messageLength) { var messageLengthWithTerminator = messageLength + 1; - var messagePartCount = Math.trunc(messageLengthWithTerminator / 160); + var messagePartCount = Math.floor(messageLengthWithTerminator / 160); if (messageLengthWithTerminator % 160 != 0) { messagePartCount++; diff --git a/libtextsecure/libaxolotl.js b/libtextsecure/libaxolotl.js index 1f74c7bd..5ead4bc0 100644 --- a/libtextsecure/libaxolotl.js +++ b/libtextsecure/libaxolotl.js @@ -34781,7 +34781,7 @@ window.axolotl.protocol = function(storage_interface) { function getPaddedMessageLength(messageLength) { var messageLengthWithTerminator = messageLength + 1; - var messagePartCount = Math.trunc(messageLengthWithTerminator / 160); + var messagePartCount = Math.floor(messageLengthWithTerminator / 160); if (messageLengthWithTerminator % 160 != 0) { messagePartCount++;