mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-17 19:26:20 +00:00
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:
@@ -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 };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user