From 510028d738cdfbffe2eae97f8aeb70892d75f69b Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 5 Jan 2020 22:48:08 +0100 Subject: [PATCH] Do not make all ONLY_ALERT_ONCE notifications silent Propagate the flag to the desktop so we can use it there to do what it's supposed to do. Fixes Whatsapp notifications not showing up in the desktop. --- .../Plugins/NotificationsPlugin/NotificationsPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java index c74600ff..c960b382 100644 --- a/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java +++ b/src/org/kde/kdeconnect/Plugins/NotificationsPlugin/NotificationsPlugin.java @@ -238,7 +238,7 @@ public class NotificationsPlugin extends Plugin implements NotificationReceiver. np.set("actions", extractActions(notification, key)); np.set("id", key); - np.set("silent", (notification.flags & NotificationCompat.FLAG_ONLY_ALERT_ONCE) != 0); + np.set("onlyOnce", (notification.flags & NotificationCompat.FLAG_ONLY_ALERT_ONCE) != 0); np.set("isClearable", statusBarNotification.isClearable()); np.set("appName", appName == null ? packageName : appName); np.set("time", Long.toString(statusBarNotification.getPostTime()));