Don't try loading -ve room indices
This commit is contained in:
parent
87feb6b076
commit
960a38fe43
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue