diff --git a/data/translations.telegram.org/en/macos/settings.html b/data/translations.telegram.org/en/macos/settings.html
index 3a84cb4ce5..67f0db340d 100644
--- a/data/translations.telegram.org/en/macos/settings.html
+++ b/data/translations.telegram.org/en/macos/settings.html
@@ -6765,7 +6765,7 @@
-
+
VoiceChat.RequestAccess
diff --git a/data/webappcontent.telegram.org/demo.html b/data/webappcontent.telegram.org/demo.html
index 67076d5788..c10f4d795e 100644
--- a/data/webappcontent.telegram.org/demo.html
+++ b/data/webappcontent.telegram.org/demo.html
@@ -99,6 +99,9 @@
.err {
color: red;
}
+ .status_need {
+ display: none;
+ }
#fixed_wrap {
position: fixed;
left: 0;
@@ -184,7 +187,7 @@
Data passed to webview.
- Checking hash...
+ Checking hash...
@@ -345,21 +348,21 @@ $('#webview_data').html(JSON.stringify(initDataUnsafe, null, 2));
$('#theme_data').html(JSON.stringify(Telegram.WebApp.themeParams, null, 2));
$('#regular_link').attr('href', $('#regular_link').attr('href') + location.hash);
$('#text_field').focus();
-if (initDataUnsafe.query_id && initData) {
- $('#webview_data_status').show();
+if (initDataUnsafe.query_id && initData && $('#webview_data_status').hasClass('status_need')) {
+ $('#webview_data_status').removeClass('status_need');
$.ajax('/demo/checkData', {
type: 'POST',
data: {_auth: initData},
dataType: 'json',
success: function(result) {
if (result.ok) {
- $('#webview_data_status').html('Hash is correct').addClass('ok');
+ $('#webview_data_status').html('Hash is correct (async)').addClass('ok');
} else {
- $('#webview_data_status').html(result.error).addClass('err');
+ $('#webview_data_status').html(result.error + ' (async)').addClass('err');
}
},
error: function(xhr) {
- $('#webview_data_status').html('Server error').addClass('err');
+ $('#webview_data_status').html('Server error (async)').addClass('err');
}
});
}