SFOS 4.4 removed notification categories, fixes #486

This commit is contained in:
Sebastian Wolf 2022-04-22 00:07:15 +02:00
parent e40cf02baa
commit ebe0143a8a
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -65,6 +65,7 @@ namespace {
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
const QString HINT_VISIBILITY("x-nemo-visibility"); // QString const QString HINT_VISIBILITY("x-nemo-visibility"); // QString
const QString HINT_FEEDBACK("x-nemo-feedback"); // QString
const QString VISIBILITY_PUBLIC("public"); const QString VISIBILITY_PUBLIC("public");
} }
@ -216,6 +217,7 @@ void NotificationManager::updateNotificationGroup(int groupId, qlonglong chatId,
notification->setHintValue(HINT_GROUP_ID, groupId); notification->setHintValue(HINT_GROUP_ID, groupId);
notification->setHintValue(HINT_CHAT_ID, chatId); notification->setHintValue(HINT_CHAT_ID, chatId);
notification->setHintValue(HINT_TOTAL_COUNT, totalCount); notification->setHintValue(HINT_TOTAL_COUNT, totalCount);
notification->setHintValue(HINT_FEEDBACK, "chat_exists");
notificationGroups.insert(groupId, notificationGroup = notificationGroups.insert(groupId, notificationGroup =
new NotificationGroup(groupId, chatId, totalCount, notification)); new NotificationGroup(groupId, chatId, totalCount, notification));
} }