diff --git a/src/smart-components/ChannelSettings/components/ModerationPanel/MemberList.tsx b/src/smart-components/ChannelSettings/components/ModerationPanel/MemberList.tsx index 325423903..7bf4953f6 100644 --- a/src/smart-components/ChannelSettings/components/ModerationPanel/MemberList.tsx +++ b/src/smart-components/ChannelSettings/components/ModerationPanel/MemberList.tsx @@ -70,7 +70,7 @@ export const MemberList = (): ReactElement => { user={member} currentUser={sdk.currentUser.userId} action={ - (userId !== member.userId) + (channel?.myRole === 'operator' && userId !== member.userId) ? ({ actionRef, parentRef }) => ( ( diff --git a/src/smart-components/ChannelSettings/components/UserListItem/index.tsx b/src/smart-components/ChannelSettings/components/UserListItem/index.tsx index 13d8b2897..a663e0d52 100644 --- a/src/smart-components/ChannelSettings/components/UserListItem/index.tsx +++ b/src/smart-components/ChannelSettings/components/UserListItem/index.tsx @@ -52,11 +52,6 @@ const UserListItem = ({ COMPONENT_NAME, ...injectingClassNames, ].join(' ')} > - { - user.isMuted && ( - - ) - } ( )} /> + { + user.isMuted && ( + + ) + }