Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions dev/AppNotifications/AppNotificationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ namespace winrt::Microsoft::Windows::AppNotifications::implementation

bool AppNotificationManager::IsSupported()
{
static bool isSupported{ !Security::IntegrityLevel::IsElevated() };
static bool isSupported = true;
return isSupported;
}

Expand Down Expand Up @@ -427,14 +427,20 @@ namespace winrt::Microsoft::Windows::AppNotifications::implementation
{
return;
}

bool isCallingPreviewSupported = false;
try
{
isCallingPreviewSupported = winrt::AppNotificationConferencingConfig::IsCallingPreviewSupported();
}
catch(...) {}

auto logTelemetry{ AppNotificationTelemetry::Show::Start(
g_telemetryHelper,
m_appId,
notification.Payload(),
notification.Tag(),
notification.Group(),
winrt::AppNotificationConferencingConfig::IsCallingPreviewSupported()) };
isCallingPreviewSupported) };

THROW_HR_IF(WPN_E_NOTIFICATION_POSTED, notification.Id() != 0);

Expand Down