From c9d58d42590a298483584b9b9aab50891ea0b903 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 10 Mar 2024 02:47:21 +0400 Subject: [PATCH] Use HasCapability directly as an argument to ranges::all_of --- .../platform/linux/notifications_manager_linux.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index b1478358d..bf9920729 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -624,9 +624,7 @@ bool ByDefault() { // To not to play sound with Don't Disturb activated // (no, using sound capability is not a way) "inhibitions", - }, [](const auto *capability) { - return HasCapability(capability); - }); + }, HasCapability); } void Create(Window::Notifications::System *system) {