Skip to content

Commit

Permalink
[FIX] Don't show Block Button inside Group DM Actions (#3195)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
  • Loading branch information
reinaldonetof and diegolmello authored Jun 10, 2021
1 parent 303c26f commit 3177bc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/RoomActionsView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 />
Expand Down Expand Up @@ -751,6 +751,8 @@ class RoomActionsView extends React.Component {
</List.Section>
);
}

return null;
}

teamChannelActions = (t, room) => {
Expand Down

0 comments on commit 3177bc3

Please sign in to comment.