Skip to content

Commit

Permalink
Merge pull request #7157 from RocketChat/fix-reactions
Browse files Browse the repository at this point in the history
[FIX] Fix all reactions having the same username
  • Loading branch information
sampaiodiego authored Jun 2, 2017
2 parents 9e873b7 + 56555bc commit 3aa9df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-message/client/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Template.message.helpers({
return Object.keys(this.reactions||{}).map(emoji => {
const reaction = this.reactions[emoji];
const total = reaction.usernames.length;
let usernames = reaction.usernames.slice(0, 15).map(username => username === userUsername ? t('You').toLowerCase() : `@${ userUsername }`).join(', ');
let usernames = reaction.usernames.slice(0, 15).map(username => username === userUsername ? t('You').toLowerCase() : `@${ username }`).join(', ');
if (total > 15) {
usernames = `${ usernames } ${ t('And_more', {
length: total - 15
Expand Down

0 comments on commit 3aa9df8

Please sign in to comment.