mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Pass context chat from one webview to another.
This commit is contained in:
@@ -521,10 +521,13 @@ void SessionNavigation::showPeerByLinkResolved(
|
||||
const auto contextPeer = item
|
||||
? item->history()->peer
|
||||
: bot;
|
||||
const auto action = bot->session().attachWebView().lookupLastAction(
|
||||
info.clickFromAttachBotWebviewUrl
|
||||
).value_or(Api::SendAction(bot->owner().history(contextPeer)));
|
||||
crl::on_main(this, [=] {
|
||||
bot->session().attachWebView().requestApp(
|
||||
parentController(),
|
||||
Api::SendAction(bot->owner().history(contextPeer)),
|
||||
action,
|
||||
bot,
|
||||
info.botAppName,
|
||||
info.startToken,
|
||||
|
@@ -217,6 +217,7 @@ public:
|
||||
InlineBots::PeerTypes attachBotChooseTypes;
|
||||
std::optional<QString> voicechatHash;
|
||||
FullMsgId clickFromMessageId;
|
||||
QString clickFromAttachBotWebviewUrl;
|
||||
};
|
||||
void showPeerByLink(const PeerByLinkInfo &info);
|
||||
|
||||
|
Reference in New Issue
Block a user