Unverified Commit 3177bc3e authored by Reinaldo Neto's avatar Reinaldo Neto Committed by GitHub
Browse files

[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: default avatarDiego Mello <diegolmello@gmail.com>
parent 303c26f7
......@@ -714,7 +714,7 @@ class RoomActionsView extends React.Component {
return null;
}
if (t === 'd') {
if (t === 'd' && !RocketChat.isGroupChat(room)) {
return (
<List.Section>
<List.Separator />
......@@ -751,6 +751,8 @@ class RoomActionsView extends React.Component {
</List.Section>
);
}
return null;
}
teamChannelActions = (t, room) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment