mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
always scroll to bottom when entering a room
This commit is contained in:
parent
276b9f1839
commit
32acb7e903
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue