[polari] chatView: Improve desktop notifications



commit ca654cbc001d1c382ac7b0090e22b81623d39ab6
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Oct 10 19:13:38 2013 +0100

    chatView: Improve desktop notifications
    
    Rather than squeezing everything into the subject line, use just
    channel-name + nick for the subject and use the body for the actual
    content.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709851

 src/chatView.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 78866b9..79efec7 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -383,9 +383,8 @@ const ChatView = new Lang.Class({
             tags.push(this._lookupTag('highlight'));
 
             if (!this._toplevelFocus) {
-                let summary = this._lastNick ? '%s: %s'.format(nick, text)
-                                             : text;
-                let notification = new Notify.Notification(summary, '');
+                let summary = '%s %s'.format(this._room.display_name, nick);
+                let notification = new Notify.Notification(summary, text);
                 notification.show();
             }
         }


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