Skip to content
Snippets Groups Projects
Commit 32acb7e9 authored by Matthew Hodgson's avatar Matthew Hodgson
Browse files

always scroll to bottom when entering a room

parent 276b9f18
No related branches found
No related tags found
No related merge requests found
...@@ -220,7 +220,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) ...@@ -220,7 +220,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
}; };
var paginate = function(numItems) { 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) { if ($scope.state.paginating || !$scope.room_id) {
return; return;
} }
...@@ -260,7 +260,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) ...@@ -260,7 +260,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
} }
if ($scope.state.first_pagination) { if ($scope.state.first_pagination) {
scrollToBottom(); scrollToBottom(true);
$scope.state.first_pagination = false; $scope.state.first_pagination = false;
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment