Merge pull request #18977 from Scroody/patch-2
Fix: Moderator lowering hand from toast broken
This commit is contained in:
commit
a1dd1371e8
@ -121,7 +121,7 @@ class RaiseHandNotifier extends Component {
|
||||
}
|
||||
|
||||
raisedHandAvatars() {
|
||||
const { raiseHandUsers, clearUserStatus, intl } = this.props;
|
||||
const { raiseHandUsers, lowerUserHands, intl } = this.props;
|
||||
let users = raiseHandUsers;
|
||||
if (raiseHandUsers.length > MAX_AVATAR_COUNT) users = users.slice(0, MAX_AVATAR_COUNT);
|
||||
|
||||
@ -134,8 +134,8 @@ class RaiseHandNotifier extends Component {
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
style={{ backgroundColor: `${u.color}` }}
|
||||
onClick={() => clearUserStatus(u.userId)}
|
||||
onKeyDown={(e) => (e.keyCode === ENTER ? clearUserStatus(u.userId) : null)}
|
||||
onClick={() => lowerUserHands(u.userId)}
|
||||
onKeyDown={(e) => (e.keyCode === ENTER ? lowerUserHands(u.userId) : null)}
|
||||
data-test="avatarsWrapperAvatar"
|
||||
moderator={u.role === ROLE_MODERATOR}
|
||||
avatar={u.avatar}
|
||||
|
Loading…
Reference in New Issue
Block a user