diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-16 15:03:07 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-16 16:16:11 +0200 |
commit | 45592ccdfde4c0b9d2452d6ecec8daec903c7df4 (patch) | |
tree | 2be7e33ddfacbb63a8d12fe9120aa4d44515f7ca /webclient/room | |
parent | Update spec with the lifetime field. (diff) | |
download | synapse-45592ccdfde4c0b9d2452d6ecec8daec903c7df4.tar.xz |
WEB-29: Improve room page content loading
InitialSync: load the 30 last messages of each room so that a full page of messages can be displayed without additionnal request
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index 50d902ae47..8cea0511c1 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -235,7 +235,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) matrixService.paginateBackMessages($scope.room_id, $rootScope.events.rooms[$scope.room_id].pagination.earliest_token, numItems).then( function(response) { - eventHandlerService.handleRoomMessages($scope.room_id, response.data, false); + eventHandlerService.handleRoomMessages($scope.room_id, response.data, false, 'b'); if (response.data.chunk.length < MESSAGES_PER_PAGINATION) { // no more messages to paginate. this currently never gets turned true again, as we never // expire paginated contents in the current implementation. |