Fetch profiles whenever conversations are opened

For a group, fetch everyone's profile.

// FREEBIE
This commit is contained in:
lilia 2017-05-26 17:05:49 -07:00 committed by Scott Nonnenberg
parent d295fa7057
commit f095a1583e
4 changed files with 25 additions and 14 deletions

View file

@ -255,13 +255,7 @@ MessageSender.prototype = {
},
getProfile: function(number) {
return this.server.getProfile(number).then(function(profile) {
var identityKey = dcodeIO.ByteBuffer.wrap(profile.identityKey).toArrayBuffer();
return textsecure.storage.protocol.isTrusted(number, identityKey).then(function(trusted) {
});
});
return this.server.getProfile(number);
},
sendRequestGroupSyncMessage: function() {