Skip to content

Commit

Permalink
Merge pull request #19266 from Ithanil/fix_raise-hand_away_reactions
Browse files Browse the repository at this point in the history
Fix: away and raiseHands 'reactions' being hidden by avatar image
  • Loading branch information
antobinary committed Jan 15, 2024
2 parents e59d6dc + 62c7f5a commit 792add0
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -636,7 +636,9 @@ class UserListItem extends PureComponent {
size: '1.3rem',
};

let userAvatarFiltered = user.avatar;
const userAvatarFiltered = (user.raiseHand === true || user.away === true || user.reaction !== 'none')
? ''
: user.avatar;

const emojiIcons = [
{
Expand All @@ -661,7 +663,6 @@ class UserListItem extends PureComponent {
} if (user.emoji !== 'none' && user.emoji !== 'notAway') {
return <Icon iconName={normalizeEmojiName(user.emoji)} />;
} if (user.reaction !== 'none') {
userAvatarFiltered = '';
return user.reaction;
} if (user.name) {
return user.name.toLowerCase().slice(0, 2);
Expand Down

0 comments on commit 792add0

Please sign in to comment.