Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Don't forward any transient notifications to the watch. #106

Merged
merged 2 commits into from
Jan 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions daemon/notificationmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@ uint NotificationManager::Notify(const QString &app_name, uint replaces_id, cons
Q_UNUSED(actions);
Q_UNUSED(expire_timeout);

// Ignore notifcations from myself
if (app_name == "pebbled") {
// new place to check notification owner in Sailfish 1.1.6
QString owner = hints.value("x-nemo-owner", "none").toString();

// Ignore transient notifcations
if (hints.value("transient", false).toBool()) {
qCDebug(l) << "Ignoring transient notification from " << owner;
return 0;
}

// new place to check notification owner in Sailfish 1.1.6
QString owner = hints.value("x-nemo-owner").toString();

qCDebug(l) << Q_FUNC_INFO << "Got notification via dbus from" << this->getCleanAppName(app_name) << " Owner: " << owner;
qCDebug(l) << hints;

Expand Down