Skip to content

Commit

Permalink
Merge pull request #6800 from RocketChat/quoted-messages-retain-alias
Browse files Browse the repository at this point in the history
[FIX] Quoted and replied messages not retaining the original message's alias
  • Loading branch information
engelgabriel committed Apr 26, 2017
2 parents 77c9b80 + 350eff4 commit 20e4ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-oembed/server/jumpToMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RocketChat.callbacks.add('beforeSaveMessage', (msg) => {
msg.attachments.push({
'text' : jumpToMessage.msg,
'translations': jumpToMessage.translations,
'author_name' : jumpToMessage.u.username,
'author_name' : jumpToMessage.alias || jumpToMessage.u.username,
'author_icon' : getAvatarUrlFromUsername(jumpToMessage.u.username),
'message_link' : item.url,
'attachments' : jumpToMessage.attachments || [],
Expand Down

0 comments on commit 20e4ea9

Please sign in to comment.