Fix reference error in MessageReceiver from fe82e4

Fix a reference error when resolving a key conflict on an incoming end
session message. See Signal-Android/5438.

// FREEBIE
This commit is contained in:
lilia 2016-04-18 15:45:04 -07:00
parent 47320fbbc5
commit 6a928e3377
2 changed files with 2 additions and 2 deletions

View file

@ -37210,7 +37210,7 @@ MessageReceiver.prototype.extend({
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
== textsecure.protobuf.DataMessage.Flags.END_SESSION &&
finalMessage.sync !== null) {
var number = textsecure.utils.unencodeNumber(encodedNumber)[0];
var number = textsecure.utils.unencodeNumber(from)[0];
p = this.handleEndSession(number);
}

View file

@ -311,7 +311,7 @@ MessageReceiver.prototype.extend({
if ((finalMessage.flags & textsecure.protobuf.DataMessage.Flags.END_SESSION)
== textsecure.protobuf.DataMessage.Flags.END_SESSION &&
finalMessage.sync !== null) {
var number = textsecure.utils.unencodeNumber(encodedNumber)[0];
var number = textsecure.utils.unencodeNumber(from)[0];
p = this.handleEndSession(number);
}