Skip to content
4 changes: 4 additions & 0 deletions app/views/RoomsListView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,8 @@ class RoomsListView extends React.Component {

isRead = item => RocketChat.isRead(item);

isSwipeEnabled = item => !(item?.search || item?.joinCodeRequired || item?.outside);
Comment thread
diegolmello marked this conversation as resolved.

getUserPresence = uid => RocketChat.getUserPresence(uid);

getUidDirectMessage = room => RocketChat.getUidDirectMessage(room);
Expand Down Expand Up @@ -916,6 +918,7 @@ class RoomsListView extends React.Component {
width
} = this.props;
const id = this.getUidDirectMessage(item);
const swipeEnabled = this.isSwipeEnabled(item);

return (
<RoomItem
Expand All @@ -938,6 +941,7 @@ class RoomsListView extends React.Component {
getIsRead={this.isRead}
visitor={item.visitor}
isFocused={currentItem?.rid === item.rid}
swipeEnabled={swipeEnabled}
/>
);
};
Expand Down