Showing unparsed messages in desktop notifications
authorDarren <darren@darrenwhitlen.com>
Wed, 6 Aug 2014 13:46:28 +0000 (14:46 +0100)
committerDarren <darren@darrenwhitlen.com>
Wed, 6 Aug 2014 13:46:28 +0000 (14:46 +0100)
client/src/views/channel.js

index d787a6667fa6b59b9cb4585a31d7302337403c86..940cb90003957ff816965abd4c7651293f810280 100644 (file)
@@ -79,7 +79,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({
                 _kiwi.app.view.alertWindow('* ' + _kiwi.global.i18n.translate('client_views_panel_activity').fetch());
                 _kiwi.app.view.favicon.newHighlight();
                 _kiwi.app.view.playSound('highlight');
-                _kiwi.app.view.showNotification(this.model.get('name'), msg.msg);
+                _kiwi.app.view.showNotification(this.model.get('name'), msg.unparsed_msg);
                 this.alert('highlight');
 
             } else {
@@ -98,7 +98,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({
                     _kiwi.app.view.favicon.newHighlight();
                 }
 
-                _kiwi.app.view.showNotification(this.model.get('name'), msg.msg);
+                _kiwi.app.view.showNotification(this.model.get('name'), msg.unparsed_msg);
                 _kiwi.app.view.playSound('highlight');
             }
 
@@ -300,6 +300,7 @@ _kiwi.view.Channel = _kiwi.view.Panel.extend({
             return parsed_word;
         }, this);
 
+        msg.unparsed_msg = msg.msg;
         msg.msg = message_words.join(' ');
 
         // Convert IRC formatting into HTML formatting