mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Don't check whether specification version is null
We log specification version anyway
This commit is contained in:
parent
0ec5181566
commit
dba9cada83
1 changed files with 0 additions and 6 deletions
|
@ -119,17 +119,11 @@ void StartServiceAsync(Gio::DBusConnection connection, Fn<void()> 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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue