Do not forward kdeconnect notifications

This commit is contained in:
Albert Vaca Cintora 2023-08-14 10:47:12 +02:00
parent c8c2fd9bd5
commit ed7758f996

View file

@ -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;