Skip to content

Commit

Permalink
Highlight notifications: display the room title
Browse files Browse the repository at this point in the history
  • Loading branch information
Slayer95 committed Dec 17, 2013
1 parent 51e37fc commit ac62058
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/client-chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,8 @@
// PMs already notify in the main menu; no need to make them notify again
var isHighlighted = this.getHighlight(message);
if (isHighlighted) {
this.notifyOnce("Mentioned by "+name, "\""+message+"\"", 'highlight');
var notifyTitle = "Mentioned by "+name+(this.id === 'lobby' ? '' : " in "+this.title);
this.notifyOnce(notifyTitle, "\""+message+"\"", 'highlight');
}
}
var highlight = isHighlighted ? ' highlighted' : '';
Expand Down

0 comments on commit ac62058

Please sign in to comment.