[gnome-shell/wip/fmuellner/notification-redux+sass: 5/61] tp: Remove gratuitous use of customContent notifications



commit 5d6e85a3cd4cf299f13bfc2a29cf3f790de84170
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 13 02:17:57 2015 +0100

    tp: Remove gratuitous use of customContent notifications

 js/ui/components/telepathyClient.js |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index f6df905..b3ee48b 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -1149,14 +1149,12 @@ const RoomInviteNotification = new Lang.Class({
                     /* translators: argument is a room name like
                      * room jabber org for example. */
                     _("Invitation to %s").format(channel.get_identifier()),
-                    null,
-                    { customContent: true });
+                    /* translators: first argument is the name of a contact and the second
+                     * one the name of a room. "Alice is inviting you to join room jabber org
+                     * for example. */
+                    _("%s is inviting you to join %s").format(inviter.get_alias(), 
channel.get_identifier()));
         this.setResident(true);
 
-        /* translators: first argument is the name of a contact and the second
-         * one the name of a room. "Alice is inviting you to join room jabber org
-         * for example. */
-        this.addBody(_("%s is inviting you to join %s").format(inviter.get_alias(), 
channel.get_identifier()));
 
         this.addAction(_("Decline"), Lang.bind(this, function() {
             dispatchOp.leave_channels_async(Tp.ChannelGroupChangeReason.NONE, '', function(src, result) {
@@ -1188,7 +1186,7 @@ const AudioVideoNotification = new Lang.Class({
              /* translators: argument is a contact name like Alice for example. */
             title = _("Call from %s").format(contact.get_alias());
 
-        this.parent(source, title, null, { customContent: true });
+        this.parent(source, title);
         this.setResident(true);
 
         this.setUrgency(MessageTray.Urgency.CRITICAL);
@@ -1222,9 +1220,7 @@ const FileTransferNotification = new Lang.Class({
                      * like: "Alice is sending you test.ogg"
                      */
                     _("%s is sending you %s").format(contact.get_alias(),
-                                                     channel.get_filename()),
-                    null,
-                    { customContent: true });
+                                                     channel.get_filename()));
         this.setResident(true);
 
         this.addAction(_("Decline"), Lang.bind(this, function() {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]