always scroll to bottom when entering a room

pull/10/head
Matthew Hodgson 2014-09-13 11:35:36 +01:00
parent 276b9f1839
commit 32acb7e903
1 changed files with 2 additions and 2 deletions

View File

@ -220,7 +220,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
};
var paginate = function(numItems) {
// console.log("paginate " + numItems);
//console.log("paginate " + numItems + " and first_pagination is " + $scope.state.first_pagination);
if ($scope.state.paginating || !$scope.room_id) {
return;
}
@ -260,7 +260,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
}
if ($scope.state.first_pagination) {
scrollToBottom();
scrollToBottom(true);
$scope.state.first_pagination = false;
}
else {