@@ -35857,7 +35857,7 @@ SessionBuilder.prototype = {
3585735857 record.updateSessionState(session);
3585835858 return Promise.all([
3585935859 this.storage.storeSession(address, record.serialize()),
35860- this.storage.saveIdentity(this.remoteAddress.getName (), session.indexInfo.remoteIdentityKey)
35860+ this.storage.saveIdentity(this.remoteAddress.toString (), session.indexInfo.remoteIdentityKey)
3586135861 ]);
3586235862 }.bind(this));
3586335863 }.bind(this));
@@ -35914,7 +35914,7 @@ SessionBuilder.prototype = {
3591435914 // end of decryptWhisperMessage ... to ensure that the sender
3591535915 // actually holds the private keys for all reported pubkeys
3591635916 record.updateSessionState(new_session);
35917- return this.storage.saveIdentity(this.remoteAddress.getName (), message.identityKey.toArrayBuffer()).then(function() {
35917+ return this.storage.saveIdentity(this.remoteAddress.toString (), message.identityKey.toArrayBuffer()).then(function() {
3591835918 return message.preKeyId;
3591935919 });
3592035920 }.bind(this));
@@ -36117,7 +36117,7 @@ SessionCipher.prototype = {
3611736117 throw new Error('Identity key changed');
3611836118 }
3611936119 }).then(function() {
36120- return this.storage.saveIdentity(this.remoteAddress.getName (), session.indexInfo.remoteIdentityKey);
36120+ return this.storage.saveIdentity(this.remoteAddress.toString (), session.indexInfo.remoteIdentityKey);
3612136121 }.bind(this)).then(function() {
3612236122 record.updateSessionState(session);
3612336123 return this.storage.storeSession(address, record.serialize()).then(function() {
@@ -36199,7 +36199,7 @@ SessionCipher.prototype = {
3619936199 throw new Error('Identity key changed');
3620036200 }
3620136201 }).then(function() {
36202- return this.storage.saveIdentity(this.remoteAddress.getName (), result.session.indexInfo.remoteIdentityKey);
36202+ return this.storage.saveIdentity(this.remoteAddress.toString (), result.session.indexInfo.remoteIdentityKey);
3620336203 }.bind(this)).then(function() {
3620436204 record.updateSessionState(result.session);
3620536205 return this.storage.storeSession(address, record.serialize()).then(function() {
0 commit comments