2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support theming for webview-s (payments, attach).

This commit is contained in:
John Preston
2022-03-29 00:14:10 +04:00
parent df15ff9f8e
commit aed1904b4c
14 changed files with 147 additions and 31 deletions

View File

@@ -1997,6 +1997,19 @@ void Updates::feedUpdate(const MTPUpdate &update) {
}
} break;
case mtpc_updateAttachMenuBots: {
} break;
case mtpc_updateWebViewResultSent: {
const auto &d = update.c_updateWebViewResultSent();
session().data().webViewResultSent({
.peerId = peerFromMTP(d.vpeer()),
.botId = UserId(d.vbot_id()),
.queryId = d.vquery_id().v,
});
} break;
case mtpc_updatePendingJoinRequests: {
const auto &d = update.c_updatePendingJoinRequests();
if (const auto peer = session().data().peerLoaded(peerFromMTP(d.vpeer()))) {