[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:
Reinaldo Neto 2021-06-10 14:52:00 -03:00 committed by GitHub
parent 303c26f716
commit 3177bc3e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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) => {