Skip to content

Commit

Permalink
Fixed Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Feb 13, 2025
1 parent 95c9fb8 commit 357909d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Telegram/SourceFiles/settings/settings_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,27 +405,27 @@ void Calls::initCaptureButton(
}

void Calls::requestPermissionAndStartTestingMicrophone() {
using namespace ::Platform;
//using namespace ::Platform;
const auto status = GetPermissionStatus(
PermissionType::Microphone);
if (status == PermissionStatus::Granted) {
::Platform::PermissionType::Microphone);
if (status == ::Platform::PermissionStatus::Granted) {
_testingMicrophone = true;
} else if (status == PermissionStatus::CanRequest) {
} else if (status == ::Platform::PermissionStatus::CanRequest) {
const auto startTestingChecked = crl::guard(this, [=](
PermissionStatus status) {
if (status == PermissionStatus::Granted) {
::Platform::PermissionStatus status) {
if (status == ::Platform::PermissionStatus::Granted) {
crl::on_main(crl::guard(this, [=] {
_testingMicrophone = true;
}));
}
});
RequestPermission(
PermissionType::Microphone,
::Platform::RequestPermission(
::Platform::PermissionType::Microphone,
startTestingChecked);
} else {
const auto showSystemSettings = [controller = _controller] {
OpenSystemSettingsForPermission(
PermissionType::Microphone);
::Platform::OpenSystemSettingsForPermission(
::Platform::PermissionType::Microphone);
controller->hideLayer();
};
_controller->show(Ui::MakeConfirmBox({
Expand Down

0 comments on commit 357909d

Please sign in to comment.