Merge pull request #7157 from RocketChat/fix-reactions

[FIX] Fix all reactions having the same username
pull/7015/merge
Diego Sampaio 9 years ago committed by GitHub
commit 3aa9df8db4
  1. 2
      packages/rocketchat-ui-message/client/message.js

@ -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

Loading…
Cancel
Save