Skip to content

Commit

Permalink
[commhistory-daemon] Suppress previews for update notifications. JB#5…
Browse files Browse the repository at this point in the history
…0448

Notification previews are now shown by default, so explicitly
disable them if required for existing behavior.
  • Loading branch information
Bea Lam committed Jul 27, 2020
1 parent 821e402 commit fac21dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/notificationgroup.cpp
Expand Up @@ -158,6 +158,8 @@ void NotificationGroup::updateGroup()
// group header ('missed calls' or 'new voicemails').
mGroup->setBody(body);
}
mGroup->clearPreviewSummary();
mGroup->clearPreviewBody();
mGroup->setItemCount(mNotifications.size());

// This group is only visible if the members are hidden
Expand Down
2 changes: 2 additions & 0 deletions src/personalnotification.cpp
Expand Up @@ -128,6 +128,8 @@ void PersonalNotification::publishNotification()
m_notification->setHintValue("x-nemo-hidden", m_hidden);
m_notification->setSummary(name);
m_notification->setBody(notificationText());
m_notification->clearPreviewSummary();
m_notification->clearPreviewBody();

NotificationManager::instance()->setNotificationProperties(m_notification, this, false);

Expand Down

0 comments on commit fac21dc

Please sign in to comment.