From 7e8f3ab5e7bf009ebfceddca97c8e25365c7e2c1 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 4 Aug 2017 15:23:54 -0700 Subject: [PATCH] Fix for "Can't find record for undefined.1" Also, we didn't need to recalculate the number here anyway! FREEBIE --- js/libtextsecure.js | 1 - libtextsecure/outgoing_message.js | 1 - 2 files changed, 2 deletions(-) diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 2506b1d0bc25..4ca354943e56 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -39182,7 +39182,6 @@ OutgoingMessage.prototype = { var address = new libsignal.SignalProtocolAddress(number, deviceId); var ourNumber = textsecure.storage.user.getNumber(); - var number = address.toString().split('.')[0]; var options = {}; // No limit on message keys if we're communicating with our other devices diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index f0867593847f..b97d5ee90932 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -139,7 +139,6 @@ OutgoingMessage.prototype = { var address = new libsignal.SignalProtocolAddress(number, deviceId); var ourNumber = textsecure.storage.user.getNumber(); - var number = address.toString().split('.')[0]; var options = {}; // No limit on message keys if we're communicating with our other devices