From ddf307570a6e60b7c85783da1ffb0352fc52d37e Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 6 Aug 2014 14:46:28 +0100 Subject: [PATCH] Showing unparsed messages in desktop notifications --- client/src/views/channel.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/views/channel.js b/client/src/views/channel.js index d787a66..940cb90 100644 --- a/client/src/views/channel.js +++ b/client/src/views/channel.js @@ -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 -- 2.25.1