[gnome-shell] telepathyClient: Use protocol-specific policy
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: Use protocol-specific policy
- Date: Wed, 5 Aug 2015 15:22:20 +0000 (UTC)
commit 58905bd01aa380aad574c25815ad9d10d50af425
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Jul 26 17:33:05 2015 +0200
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index 3aa06e7..f571319 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');
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]