Message Links: Fix opening message links in the application (#4910)

This commit is contained in:
Alexander Zinchuk 2024-08-29 15:52:49 +02:00
parent 005a6fca93
commit 0685adbfe8

View File

@ -1365,7 +1365,7 @@ addActionHandler('openTelegramLink', async (global, actions, payload): Promise<v
const isWebApp = await checkWebAppExists(global, part1, part2);
const shouldTryOpenChat = (part1 && !part2) || isWebApp;
const shouldTryOpenChat = (part1 && !part2) || Number.isInteger(Number(part2)) || isWebApp;
if (params.hasOwnProperty('voicechat') || params.hasOwnProperty('livestream')) {
joinVoiceChatByLink({