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:
parent
f0a1e05600
commit
bab54aea8b
1 changed files with 3 additions and 3 deletions
|
|
@ -81,11 +81,11 @@ exports.LoadUtils = () => {
|
|||
const link = window.Store.Validators.findLink(content);
|
||||
if (link) {
|
||||
const preview = await window.Store.Wap.queryLinkPreview(link.url);
|
||||
if (!preview.status) {
|
||||
preview.preview = true;
|
||||
preview.subtype = 'url';
|
||||
options = { ...options, ...preview };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const newMsgId = new window.Store.MsgKey({
|
||||
from: window.Store.Conn.me,
|
||||
|
|
|
|||
Loading…
Reference in a new issue