Remove rooms.include from goRoom

This commit is contained in:
Reinaldo Neto 2021-07-08 19:25:40 -03:00
parent 3d1c594efc
commit a352dc926d
1 changed files with 1 additions and 2 deletions

View File

@ -729,8 +729,7 @@ class RoomsListView extends React.Component {
goRoom = ({ item, isMasterDetail }) => {
logEvent(events.RL_GO_ROOM);
const { item: currentItem } = this.state;
const { rooms } = this.props;
if (currentItem?.rid === item.rid || rooms?.includes(item.rid)) {
if (currentItem?.rid === item.rid) {
return;
}
// Only mark room as focused when in master detail layout