|
|
|
@ -38122,7 +38122,7 @@ var TextSecureServer = (function() {
|
|
|
|
|
|
|
|
|
|
// update our own identity key, which may have changed
|
|
|
|
|
// if we're relinking after a reinstall on the master device
|
|
|
|
|
textsecure.storage.protocol.saveIdentityWithAttributes({
|
|
|
|
|
textsecure.storage.protocol.saveIdentityWithAttributes(number, {
|
|
|
|
|
id : number,
|
|
|
|
|
publicKey : identityKeyPair.pubKey,
|
|
|
|
|
firstUse : true,
|
|
|
|
@ -38477,7 +38477,7 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
this.handleBlocked(syncMessage.blocked);
|
|
|
|
|
} else if (syncMessage.request) {
|
|
|
|
|
console.log('Got SyncMessage Request');
|
|
|
|
|
} else if (syncMessage.read) {
|
|
|
|
|
} else if (syncMessage.read && syncMessage.read.length) {
|
|
|
|
|
console.log('read messages',
|
|
|
|
|
'from', envelope.source + '.' + envelope.sourceDevice);
|
|
|
|
|
this.handleRead(syncMessage.read, envelope.timestamp);
|
|
|
|
@ -39263,7 +39263,7 @@ MessageSender.prototype = {
|
|
|
|
|
return this.sendIndividualProto(myNumber, contentMessage, Date.now());
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
syncVerification: function(state, destination, identityKey) {
|
|
|
|
|
syncVerification: function(destination, state, identityKey) {
|
|
|
|
|
var myNumber = textsecure.storage.user.getNumber();
|
|
|
|
|
var myDevice = textsecure.storage.user.getDeviceId();
|
|
|
|
|
if (myDevice != 1) {
|
|
|
|
@ -39526,7 +39526,7 @@ textsecure.MessageSender = function(url, ports, username, password) {
|
|
|
|
|
this.sendSyncMessage = sender.sendSyncMessage .bind(sender);
|
|
|
|
|
this.getProfile = sender.getProfile .bind(sender);
|
|
|
|
|
this.syncReadMessages = sender.syncReadMessages .bind(sender);
|
|
|
|
|
this.syncVerification = sender.syncReadMessages .bind(sender);
|
|
|
|
|
this.syncVerification = sender.syncVerification .bind(sender);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
textsecure.MessageSender.prototype = {
|
|
|
|
|