Merge pull request #354 from monich/image-path

Explicitly set image-path notification hint to empty string
This commit is contained in:
Sebastian Wolf 2021-02-01 20:38:25 +01:00 committed by GitHub
commit 0e401fd18b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,6 +60,7 @@ namespace {
const QString HINT_CHAT_ID("x-fernschreiber.chat_id"); // qlonglong const QString HINT_CHAT_ID("x-fernschreiber.chat_id"); // qlonglong
const QString HINT_TOTAL_COUNT("x-fernschreiber.total_count"); // int 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_VIBRA("x-nemo-vibrate"); // bool
const QString HINT_SUPPRESS_SOUND("suppress-sound"); // bool const QString HINT_SUPPRESS_SOUND("suppress-sound"); // bool
const QString HINT_DISPLAY_ON("x-nemo-display-on"); // 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->setBody(notificationBody);
nemoNotification->setSummary(summary); nemoNotification->setSummary(summary);
nemoNotification->setHintValue(HINT_VIBRA, needFeedback); nemoNotification->setHintValue(HINT_VIBRA, needFeedback);
nemoNotification->setHintValue(HINT_IMAGE_PATH, QString());
// Don't show popup for the currently open chat // Don't show popup for the currently open chat
if (!needFeedback || (chatModel->getChatId() == notificationGroup->chatId && if (!needFeedback || (chatModel->getChatId() == notificationGroup->chatId &&