Replace "/me" with sender's name in notifications.

This fixes #2358.

(imported from commit 579f217687bd2af80ab6919a72435336ab456410)
This commit is contained in:
Steve Howell 2014-03-10 11:26:39 -04:00
parent 3d7c3a6de3
commit e993b8fc40
1 changed files with 4 additions and 0 deletions

View File

@ -222,6 +222,10 @@ function process_notification(notification) {
ui.replace_emoji_with_text(content);
content = content.text();
if (message.is_me_message) {
content = message.sender_full_name + content.slice(3);
}
if (message.type === "private") {
key = message.display_reply_to;
other_recipients = message.display_reply_to;