Skip to content

Commit

Permalink
Fix #318: Update notifyDesktop for #234.
Browse files Browse the repository at this point in the history
message.body is no longer a string.
  • Loading branch information
cburschka committed Dec 30, 2015
1 parent b044403 commit 11fb1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,7 +1073,7 @@ var ui = {
if (xmpp.userStatus == 'dnd') return;
if (level <= config.settings.notifications.desktop && document.hidden) {
var title = xmpp.room.available[xmpp.room.current].title;
var text = $('<span>' + message.body + '</span>').text();
var text = $(message.body).text();
if (message.type != 'groupchat' && message.type != 'local')
text = strings.info.whisper + ' ' + text;

Expand Down

0 comments on commit 11fb1b2

Please sign in to comment.