Fix inbound link preview images

This commit is contained in:
Evan Hahn 2020-09-04 13:27:22 -05:00 committed by Evan Hahn
parent aeff7540c8
commit f6dcf91dbf
1 changed files with 1 additions and 1 deletions

View File

@ -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;