mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Don't check whether specification version is null
We log specification version anyway
This commit is contained in:
@@ -119,17 +119,11 @@ void StartServiceAsync(Gio::DBusConnection connection, Fn<void()> callback) {
|
|||||||
|
|
||||||
std::string GetImageKey() {
|
std::string GetImageKey() {
|
||||||
const auto &specVersion = CurrentServerInformation.specVersion;
|
const auto &specVersion = CurrentServerInformation.specVersion;
|
||||||
if (specVersion.isNull()) {
|
|
||||||
LOG(("Native Notification Error: specification version is null"));
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
|
|
||||||
if (specVersion >= QVersionNumber(1, 2)) {
|
if (specVersion >= QVersionNumber(1, 2)) {
|
||||||
return "image-data";
|
return "image-data";
|
||||||
} else if (specVersion == QVersionNumber(1, 1)) {
|
} else if (specVersion == QVersionNumber(1, 1)) {
|
||||||
return "image_data";
|
return "image_data";
|
||||||
}
|
}
|
||||||
|
|
||||||
return "icon_data";
|
return "icon_data";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user