From f6dcf91dbfe1ecf7af78a3213067e4e1b769781a Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Fri, 4 Sep 2020 13:27:22 -0500 Subject: [PATCH] Fix inbound link preview images --- ts/textsecure/MessageReceiver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/textsecure/MessageReceiver.ts b/ts/textsecure/MessageReceiver.ts index 23d4b2932455..a9e2ee0b85dc 100644 --- a/ts/textsecure/MessageReceiver.ts +++ b/ts/textsecure/MessageReceiver.ts @@ -1882,7 +1882,7 @@ class MessageReceiverInner extends EventTarget { decrypted.preview = (decrypted.preview || []).map(item => ({ ...item, date: this.cleanLinkPreviewDate(item.date), - ...(item.image ? this.cleanAttachment(item.image) : {}), + ...(item.image ? { image: this.cleanAttachment(item.image) } : {}), })); decrypted.contact = (decrypted.contact || []).map(item => { const { avatar } = item;