Narrow down message link option for tg/resolve links

This commit is contained in:
Sebastian Wolf 2021-12-11 23:22:32 +01:00
parent b8e5fb189c
commit fe9cd73798
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -399,7 +399,7 @@ function handleLink(link) {
if ( (link.indexOf(tMePrefix) === 0 && link.substring(tMePrefix.length).indexOf("/") > 0) ||
(link.indexOf(tMePrefixHttp) === 0 && link.substring(tMePrefixHttp.length).indexOf("/") > 0) ||
link.indexOf("tg://privatepost") === 0 ||
link.indexOf("tg://resolve") === 0 ) {
( link.indexOf("tg://resolve") === 0 && link.indexOf("post") > 0 ) ) {
Debug.log("Using message link info for: " + link);
tdLibWrapper.getMessageLinkInfo(link, "openDirectly");
return;