Fix build with latest Visual Studio.

This commit is contained in:
John Preston 2025-02-13 21:22:44 +04:00
parent f1451a1de3
commit 0fd752657a

View file

@ -405,7 +405,8 @@ void Calls::initCaptureButton(
}
void Calls::requestPermissionAndStartTestingMicrophone() {
using namespace ::Platform;
using PermissionType = ::Platform::PermissionType;
using PermissionStatus = ::Platform::PermissionStatus;
const auto status = GetPermissionStatus(
PermissionType::Microphone);
if (status == PermissionStatus::Granted) {