2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Always show footer in webview in payments.

This commit is contained in:
John Preston
2021-04-01 18:39:44 +04:00
parent cd4a9d7c16
commit 491ec2db7f
8 changed files with 48 additions and 8 deletions

View File

@@ -167,7 +167,10 @@ void CheckoutProcess::handleFormUpdate(const FormUpdate &update) {
_submitState = SubmitState::Validated;
requestPassword();
}, [&](const VerificationNeeded &data) {
if (!_panel->showWebview(data.url, false)) {
auto bottomText = tr::lng_payments_processed_by(
lt_provider,
rpl::single(_form->invoice().provider));
if (!_panel->showWebview(data.url, false, std::move(bottomText))) {
File::OpenUrl(data.url);
close();
}