diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js index 41da6dd80..518e10c48 100644 --- a/app/views/RoomsListView/index.js +++ b/app/views/RoomsListView/index.js @@ -613,6 +613,8 @@ class RoomsListView extends React.Component { isRead = item => RocketChat.isRead(item); + isSwipeEnabled = item => !(item?.search || item?.joinCodeRequired || item?.outside); + getUserPresence = uid => RocketChat.getUserPresence(uid); getUidDirectMessage = room => RocketChat.getUidDirectMessage(room); @@ -928,6 +930,7 @@ class RoomsListView extends React.Component { displayMode } = this.props; const id = this.getUidDirectMessage(item); + const swipeEnabled = this.isSwipeEnabled(item); return (