From 58905bd01aa380aad574c25815ad9d10d50af425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 26 Jul 2015 17:33:05 +0200 Subject: [PATCH] telepathyClient: Use protocol-specific policy Since commit 79c04c93e4cb2, we launch Polari instead of Empathy when activating a chat notification for an IRC channel. It therefore makes sense to follow Polari's notification policy for those notifications rather than Empathy's. https://bugzilla.gnome.org/show_bug.cgi?id=752881 --- js/ui/components/telepathyClient.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js index 3aa06e7b8..f57131975 100644 --- a/js/ui/components/telepathyClient.js +++ b/js/ui/components/telepathyClient.js @@ -303,6 +303,8 @@ const ChatSource = new Lang.Class({ }, _createPolicy: function() { + if (this._account.protocol_name == 'irc') + return new MessageTray.NotificationApplicationPolicy('org.gnome.Polari'); return new MessageTray.NotificationApplicationPolicy('empathy'); },