Accept "livestream" and "videochat" link params.

This commit is contained in:
John Preston 2021-09-13 16:19:59 +03:00
parent 58b5b3deec
commit c6097d3d11

View file

@ -308,7 +308,11 @@ bool ResolveUsername(
} }
: Navigation::RepliesByLinkInfo{ v::null }, : Navigation::RepliesByLinkInfo{ v::null },
.startToken = startToken, .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::make_optional(params.value(u"voicechat"_q))
: std::nullopt), : std::nullopt),
.clickFromMessageId = fromMessageId, .clickFromMessageId = fromMessageId,