From dba9cada83131276fcde7941e6c4cc458808b533 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 10 Mar 2024 02:00:52 +0400 Subject: [PATCH] Don't check whether specification version is null We log specification version anyway --- .../platform/linux/notifications_manager_linux.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index 0fa06d3a16..b1478358d9 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -119,17 +119,11 @@ void StartServiceAsync(Gio::DBusConnection connection, Fn callback) { std::string GetImageKey() { const auto &specVersion = CurrentServerInformation.specVersion; - if (specVersion.isNull()) { - LOG(("Native Notification Error: specification version is null")); - return {}; - } - if (specVersion >= QVersionNumber(1, 2)) { return "image-data"; } else if (specVersion == QVersionNumber(1, 1)) { return "image_data"; } - return "icon_data"; }