From 903cb02919fb5903c9d34ab9c884da3c54127b98 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Mon, 1 Feb 2021 02:04:18 +0200 Subject: [PATCH] Explicitly set image-path notification hint to empty string To stop home screen from using app icon as a default. --- src/notificationmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/notificationmanager.cpp b/src/notificationmanager.cpp index c49031e..b887d08 100644 --- a/src/notificationmanager.cpp +++ b/src/notificationmanager.cpp @@ -60,6 +60,7 @@ namespace { const QString HINT_CHAT_ID("x-fernschreiber.chat_id"); // qlonglong const QString HINT_TOTAL_COUNT("x-fernschreiber.total_count"); // int + const QString HINT_IMAGE_PATH("image-path"); // QString const QString HINT_VIBRA("x-nemo-vibrate"); // bool const QString HINT_SUPPRESS_SOUND("suppress-sound"); // bool const QString HINT_DISPLAY_ON("x-nemo-display-on"); // bool @@ -362,6 +363,7 @@ void NotificationManager::publishNotification(const NotificationGroup *notificat nemoNotification->setBody(notificationBody); nemoNotification->setSummary(summary); nemoNotification->setHintValue(HINT_VIBRA, needFeedback); + nemoNotification->setHintValue(HINT_IMAGE_PATH, QString()); // Don't show popup for the currently open chat if (!needFeedback || (chatModel->getChatId() == notificationGroup->chatId &&