|
|
|
@ -36929,9 +36929,9 @@ function MessageReceiver(url, username, password, signalingKey, attachment_serve
|
|
|
|
|
this.password = password;
|
|
|
|
|
this.server = new TextSecureServer(url, username, password, attachment_server_url);
|
|
|
|
|
|
|
|
|
|
var unencoded = textsecure.utils.unencodeNumber(username);
|
|
|
|
|
this.number = unencoded[0];
|
|
|
|
|
this.deviceId = unencoded[1];
|
|
|
|
|
var address = libsignal.SignalProtocolAddress.fromString(username);
|
|
|
|
|
this.number = address.getName();
|
|
|
|
|
this.deviceId = address.getDeviceId();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MessageReceiver.prototype = new textsecure.EventTarget();
|
|
|
|
|