mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Link Previews
This commit is contained in:
@@ -1371,6 +1371,14 @@ MessageReceiver.prototype.extend({
|
||||
promises.push(this.handleAttachment(attachment));
|
||||
}
|
||||
|
||||
const previewCount = (decrypted.preview || []).length;
|
||||
for (let i = 0; i < previewCount; i += 1) {
|
||||
const preview = decrypted.preview[i];
|
||||
if (preview.image) {
|
||||
promises.push(this.handleAttachment(preview.image));
|
||||
}
|
||||
}
|
||||
|
||||
if (decrypted.contact && decrypted.contact.length) {
|
||||
const contacts = decrypted.contact;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user