diff --git a/app/views/RoomActionsView/index.js b/app/views/RoomActionsView/index.js index 184d21327..1e67eed33 100644 --- a/app/views/RoomActionsView/index.js +++ b/app/views/RoomActionsView/index.js @@ -930,9 +930,7 @@ class RoomActionsView extends React.Component { canForwardGuest, canReturnQueue } = this.state; - const { - rid, t, prid - } = room; + const { rid, t, prid } = room; const isGroupChat = RocketChat.isGroupChat(room); return ( @@ -990,22 +988,22 @@ class RoomActionsView extends React.Component { this.onPressTouchable({ route: 'InviteUsersView', params: { rid } - })} - testID='room-actions-invite-user' - left={() => } - showActionIndicator - /> - - - ) - : null} + }) + } + testID='room-actions-invite-user' + left={() => } + showActionIndicator + /> + + + ) : null} - {['c', 'p', 'd'].includes(t) && !prid - ? ( - <> - this.onPressTouchable({ + {['c', 'p', 'd'].includes(t) && !prid ? ( + <> + + this.onPressTouchable({ route: 'DiscussionMessagesView', params: { rid, @@ -1016,22 +1014,22 @@ class RoomActionsView extends React.Component { autoTranslateLanguage: room.autoTranslateLanguage, navToRoomInfo: navParam => this.navToRoomInfo(navParam) } - })} - testID='room-actions-discussions' - left={() => } - showActionIndicator - /> - - - ) - : null} + }) + } + testID='room-actions-discussions' + left={() => } + showActionIndicator + /> + + + ) : null} - {['c', 'p', 'd'].includes(t) - ? ( - <> - this.onPressTouchable({ + {['c', 'p', 'd'].includes(t) ? ( + <> + + this.onPressTouchable({ route: 'MessagesView', params: { rid, t, name: 'Files' } })