|
|
|
@ -38494,15 +38494,13 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
handleVerified: function(verified) {
|
|
|
|
|
for (var i = 0; i < verified.length; ++i) {
|
|
|
|
|
var ev = new Event('verified');
|
|
|
|
|
ev.verified = {
|
|
|
|
|
state: verified[i].state,
|
|
|
|
|
destination: verified[i].destination,
|
|
|
|
|
identityKey: verified[i].identityKey.toArrayBuffer()
|
|
|
|
|
};
|
|
|
|
|
this.dispatchEvent(ev);
|
|
|
|
|
}
|
|
|
|
|
var ev = new Event('verified');
|
|
|
|
|
ev.verified = {
|
|
|
|
|
state: verified.state,
|
|
|
|
|
destination: verified.destination,
|
|
|
|
|
identityKey: verified.identityKey.toArrayBuffer()
|
|
|
|
|
};
|
|
|
|
|
this.dispatchEvent(ev);
|
|
|
|
|
},
|
|
|
|
|
handleRead: function(read, timestamp) {
|
|
|
|
|
for (var i = 0; i < read.length; ++i) {
|
|
|
|
@ -38528,7 +38526,7 @@ MessageReceiver.prototype.extend({
|
|
|
|
|
eventTarget.dispatchEvent(ev);
|
|
|
|
|
|
|
|
|
|
if (contactDetails.verified) {
|
|
|
|
|
this.handleVerified([contactDetails.verified]);
|
|
|
|
|
this.handleVerified(contactDetails.verified);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
contactDetails = contactBuffer.next();
|
|
|
|
|