Don't try loading -ve room indices
This commit is contained in:
parent
87feb6b076
commit
960a38fe43
|
@ -166,7 +166,7 @@ module.exports = {
|
|||
break;
|
||||
}
|
||||
}
|
||||
roomIndex = (roomIndex + roomIndexDelta) % allRooms.length;
|
||||
roomIndex = Math.max((roomIndex + roomIndexDelta) % allRooms.length, 0);
|
||||
this.focusComposer = true;
|
||||
this.setState({
|
||||
currentRoom: allRooms[roomIndex].roomId
|
||||
|
|
Loading…
Reference in New Issue