mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 17:16:46 +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,
|
||||
|
||||
Reference in New Issue
Block a user