fix: set url subtype for messages with link previews

Co-authored-by: João Vitor Miranda <joao.miranda@aluno.ufabc.edu.br>
Co-authored-by: Top <shmuliktop@users.noreply.github.com>
This commit is contained in:
Pedro Lopez
2020-04-14 22:42:05 -04:00
parent f0a1e05600
commit bab54aea8b

View File

@@ -81,9 +81,9 @@ exports.LoadUtils = () => {
const link = window.Store.Validators.findLink(content);
if (link) {
const preview = await window.Store.Wap.queryLinkPreview(link.url);
if (!preview.status) {
options = { ...options, ...preview};
}
preview.preview = true;
preview.subtype = 'url';
options = { ...options, ...preview };
}
}