Fix view_next_room
This commit is contained in:
parent
4c214119b2
commit
fc06ebcc63
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
roomIndex = (roomIndex + roomIndexDelta) % allRooms.length;
|
roomIndex = (roomIndex + roomIndexDelta) % allRooms.length;
|
||||||
if (roomIndex < 0) roomIndex = allRooms.length - 1;
|
if (roomIndex < 0) roomIndex = allRooms.length - 1;
|
||||||
this._viewRoom({ room_id: allRooms[roomIndex].room_id });
|
this._viewRoom({ room_id: allRooms[roomIndex].roomId });
|
||||||
break;
|
break;
|
||||||
case 'view_indexed_room':
|
case 'view_indexed_room':
|
||||||
var allRooms = RoomListSorter.mostRecentActivityFirst(
|
var allRooms = RoomListSorter.mostRecentActivityFirst(
|
||||||
|
|
Loading…
Reference in a new issue