Contact sharing: protos and data pipeline

As of this commit: 82b76ccf37
This commit is contained in:
Scott Nonnenberg 2018-04-27 09:32:31 -07:00
parent b6a585a646
commit 3ea3e4e256
7 changed files with 868 additions and 27 deletions

View file

@ -1065,6 +1065,14 @@ MessageReceiver.prototype.extend({
promises.push(this.handleAttachment(attachment));
}
if (
decrypted.contact &&
decrypted.contact.avatar &&
decrypted.contact.avatar.avatar
) {
promises.push(this.handleAttachment(decrypted.contact.avatar.avatar));
}
if (decrypted.quote && decrypted.quote.id) {
decrypted.quote.id = decrypted.quote.id.toNumber();
}