summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-13 11:35:36 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-13 11:35:36 +0100
commit32acb7e90304fccf85e2271fb0a6f60b1fadbaf7 (patch)
tree326dd3bb1ce8df27d1e24f5643ad6d5ec67dda28
parentmore wishlist (diff)
downloadsynapse-32acb7e90304fccf85e2271fb0a6f60b1fadbaf7.tar.xz
always scroll to bottom when entering a room
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 45dfff95c2..50d902ae47 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -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 {