diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-16 16:13:24 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-16 16:16:11 +0200 |
commit | 890178cf25491716289e5c54c045478b1be55d29 (patch) | |
tree | c6ef5841ac7dce02d9c62b6eebbf9cb3deb1ab38 | |
parent | If an initialSync has been already done on a room, we do not need to paginate... (diff) | |
download | synapse-890178cf25491716289e5c54c045478b1be55d29.tar.xz |
Fixed scroll flickering when opening the room
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room-controller.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index d3888cae86..2c9a3836e7 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -676,6 +676,10 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) var onInit2 = function() { console.log("onInit2"); + // Scroll down as soon as possible so that we point to the last message + // if it already exists in memory + scrollToBottom(true); + // Make sure the initialSync has been before going further eventHandlerService.waitForInitialSyncCompletion().then( function() { |