fix variable

This commit is contained in:
Dmitriy Pleshevskiy 2023-07-01 13:35:43 +03:00
parent 055318047e
commit fd706d7d29
Signed by: pleshevskiy
GPG key ID: 79C4487B44403985

View file

@ -58,7 +58,7 @@ function getMessageUrl(msg) {
function getTextLink(msg) {
const textLinks = (msg.entities ?? []).filter(isTextLink);
return textLinks.length ? links[0].url : null;
return textLinks.length ? textLinks[0].url : null;
}
function isTextLink(msgEntity) {