[FIX] Don't show Block Button inside Group DM Actions (#3195)
* [FIX] Don't show Block Button inside Group DM Actions * Use RocketChat.isGroupChat instead of simple if condition * Add return Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
303c26f716
commit
3177bc3e58
|
@ -714,7 +714,7 @@ class RoomActionsView extends React.Component {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (t === 'd') {
|
if (t === 'd' && !RocketChat.isGroupChat(room)) {
|
||||||
return (
|
return (
|
||||||
<List.Section>
|
<List.Section>
|
||||||
<List.Separator />
|
<List.Separator />
|
||||||
|
@ -751,6 +751,8 @@ class RoomActionsView extends React.Component {
|
||||||
</List.Section>
|
</List.Section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
teamChannelActions = (t, room) => {
|
teamChannelActions = (t, room) => {
|
||||||
|
|
Loading…
Reference in New Issue