File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
smart-components/ChannelSettings/components Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export const MemberList = (): ReactElement => {
70
70
user = { member }
71
71
currentUser = { sdk . currentUser . userId }
72
72
action = {
73
- ( userId !== member . userId )
73
+ ( channel ?. myRole === 'operator' && userId !== member . userId )
74
74
? ( { actionRef, parentRef } ) => (
75
75
< ContextMenu
76
76
menuTrigger = { ( toggleDropdown ) => (
Original file line number Diff line number Diff line change @@ -52,11 +52,6 @@ const UserListItem = ({
52
52
COMPONENT_NAME , ...injectingClassNames ,
53
53
] . join ( ' ' ) }
54
54
>
55
- {
56
- user . isMuted && (
57
- < MutedAvatarOverlay />
58
- )
59
- }
60
55
< ContextMenu
61
56
menuTrigger = { ( toggleDropdown ) => (
62
57
< Avatar
@@ -100,6 +95,11 @@ const UserListItem = ({
100
95
</ MenuItems >
101
96
) }
102
97
/>
98
+ {
99
+ user . isMuted && (
100
+ < MutedAvatarOverlay />
101
+ )
102
+ }
103
103
< Label
104
104
className = { `${ COMPONENT_NAME } __title` }
105
105
type = { LabelTypography . SUBTITLE_1 }
@@ -137,7 +137,7 @@ const UserListItem = ({
137
137
{
138
138
action && (
139
139
< div ref = { actionRef } className = { `${ COMPONENT_NAME } __action` } >
140
- { action ( { actionRef, parentRef } ) }
140
+ { action ( { actionRef, parentRef } ) }
141
141
</ div >
142
142
)
143
143
}
Original file line number Diff line number Diff line change 15
15
position : absolute ;
16
16
top : 8px ;
17
17
left : 0px ;
18
- z-index : 1 ;
19
18
cursor : pointer ;
20
19
}
21
20
22
21
.sendbird-muted-avatar {
23
22
position : absolute ;
24
23
top : 8px ;
25
24
left : 0px ;
26
- z-index : 2 ;
27
25
pointer-events : none ;
28
26
}
29
27
You can’t perform that action at this time.
0 commit comments