From c6097d3d1181339acd2d8628a76b9a92728a52ed Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 13 Sep 2021 16:19:59 +0300 Subject: [PATCH] Accept "livestream" and "videochat" link params. --- Telegram/SourceFiles/core/local_url_handlers.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/core/local_url_handlers.cpp b/Telegram/SourceFiles/core/local_url_handlers.cpp index da9879415..a72c20b5d 100644 --- a/Telegram/SourceFiles/core/local_url_handlers.cpp +++ b/Telegram/SourceFiles/core/local_url_handlers.cpp @@ -308,7 +308,11 @@ bool ResolveUsername( } : Navigation::RepliesByLinkInfo{ v::null }, .startToken = startToken, - .voicechatHash = (params.contains(u"voicechat"_q) + .voicechatHash = (params.contains(u"livestream"_q) + ? std::make_optional(params.value(u"livestream"_q)) + : params.contains(u"videochat"_q) + ? std::make_optional(params.value(u"videochat"_q)) + : params.contains(u"voicechat"_q) ? std::make_optional(params.value(u"voicechat"_q)) : std::nullopt), .clickFromMessageId = fromMessageId,