From ed7758f99610e80df51bfe1fe93a329cdd6ed27d Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Mon, 14 Aug 2023 10:47:12 +0200 Subject: [PATCH] Do not forward kdeconnect notifications --- plugins/sendnotifications/notificationslistener.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/sendnotifications/notificationslistener.cpp b/plugins/sendnotifications/notificationslistener.cpp index bb595048e..c59b34458 100644 --- a/plugins/sendnotifications/notificationslistener.cpp +++ b/plugins/sendnotifications/notificationslistener.cpp @@ -368,6 +368,11 @@ void NotificationsListener::onNotify(const QString &appName, // qCDebug(KDECONNECT_PLUGIN_SENDNOTIFICATIONS) << "Got notification appName=" << appName << "replacesId=" << replacesId // << "appIcon=" << appIcon << "summary=" << summary << "body=" << body << "actions=" << actions << "hints=" << hints << "timeout=" << timeout; + if (appName == QStringLiteral("KDE Connect")) { + qCDebug(KDECONNECT_PLUGIN_SENDNOTIFICATIONS) << "Ignoring my own notification"; + return; + } + auto *config = m_plugin->config(); NotifyingApplication app;