diff options
author | Pacho Ramos <pacho@gentoo.org> | 2019-12-14 23:30:37 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2019-12-15 00:05:12 +0100 |
commit | ae88f9598d5c2932409b258dbfed50ac6d82a7d5 (patch) | |
tree | f31f625f2343a5553346754df9a05817c4d656f8 /gnome-extra/gnome-shell-extension-gsconnect/files | |
parent | dev-python/polib: Drop old (diff) | |
download | gentoo-ae88f9598d5c2932409b258dbfed50ac6d82a7d5.tar.gz gentoo-ae88f9598d5c2932409b258dbfed50ac6d82a7d5.tar.bz2 gentoo-ae88f9598d5c2932409b258dbfed50ac6d82a7d5.zip |
gnome-extra/gnome-shell-extension-gsconnect: Fix some notifications (like WhatsApp ones)
Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Pacho Ramos <pacho@gentoo.org>
Diffstat (limited to 'gnome-extra/gnome-shell-extension-gsconnect/files')
-rw-r--r-- | gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch b/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch new file mode 100644 index 000000000000..444642ee3c72 --- /dev/null +++ b/gnome-extra/gnome-shell-extension-gsconnect/files/gnome-shell-extension-gsconnect-28-silent-flag.patch @@ -0,0 +1,39 @@ +From 1811528ca72a2b83924bc717c424f1301bf17c30 Mon Sep 17 00:00:00 2001 +From: Andy Holmes <andrew.g.r.holmes@gmail.com> +Date: Sun, 1 Dec 2019 16:39:41 -0800 +Subject: [PATCH] Notification Plugin: ignore the `silent` flag entirely + +Upstream kdeconnect-android is tagging many notifications as `silent`, +causing them to never be shown. Since we already handle duplicates in +the Shell, we ignore that flag for now. + +closes #720 +--- + src/service/plugins/notification.js | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/service/plugins/notification.js b/src/service/plugins/notification.js +index b31a828ba..45ed2050c 100644 +--- a/src/service/plugins/notification.js ++++ b/src/service/plugins/notification.js +@@ -135,16 +135,16 @@ var Plugin = GObject.registerClass({ + + /** + * Handle an incoming notification or closed report. ++ * ++ * FIXME: upstream kdeconnect-android is tagging many notifications as ++ * `silent`, causing them to never be shown. Since we already handle ++ * duplicates in the Shell, we ignore that flag for now. + */ + _handleNotification(packet) { + // A report that a remote notification has been dismissed + if (packet.body.hasOwnProperty('isCancel')) { + this.device.hideNotification(packet.body.id); + +- // A silent notification; silence it by aborting the icon transfer +- } else if (packet.body.hasOwnProperty('silent') && packet.body.silent) { +- this.device.rejectTransfer(packet); +- + // A normal, remote notification + } else { + this.receiveNotification(packet); |