diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index f73fceab05..f663863afa 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -233,6 +233,10 @@ bool ByDefault() { }, HasCapability); } +bool VolumeSupported() { + return false; +} + void Create(Window::Notifications::System *system) { static const auto ServiceWatcher = CreateServiceWatcher(); diff --git a/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm b/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm index b92cd90f55..5ba6462ee8 100644 --- a/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm +++ b/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm @@ -205,6 +205,10 @@ bool ByDefault() { return Supported(); } +bool VolumeSupported() { + return false; +} + void Create(Window::Notifications::System *system) { system->setManager([=] { return std::make_unique(system); }); } diff --git a/Telegram/SourceFiles/platform/platform_notifications_manager.h b/Telegram/SourceFiles/platform/platform_notifications_manager.h index 3ddb70a540..da41f6010e 100644 --- a/Telegram/SourceFiles/platform/platform_notifications_manager.h +++ b/Telegram/SourceFiles/platform/platform_notifications_manager.h @@ -20,6 +20,7 @@ void MaybeFlashBounceForCustom(Fn flashBounce); [[nodiscard]] bool Supported(); [[nodiscard]] bool Enforced(); [[nodiscard]] bool ByDefault(); +[[nodiscard]] bool VolumeSupported(); void Create(Window::Notifications::System *system); } // namespace Notifications diff --git a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp index d132ed4f32..2692923efd 100644 --- a/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp +++ b/Telegram/SourceFiles/platform/win/notifications_manager_win.cpp @@ -417,6 +417,10 @@ bool ByDefault() { return false; } +bool VolumeSupported() { + return true; +} + void Create(Window::Notifications::System *system) { system->setManager([=] { auto result = std::make_unique(system);