Skip to content
Snippets Groups Projects
Commit 96da4208 authored by Emmanuel ROHEE's avatar Emmanuel ROHEE
Browse files

BF: Wait for the room_id being resolved before starting pagination

parent 583add34
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
var paginate = function(numItems) {
// console.log("paginate " + numItems);
if ($scope.state.paginating) {
if ($scope.state.paginating || !$scope.room_id) {
return;
}
else {
......@@ -145,7 +145,7 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
console.log("Failed to paginateBackMessages: " + JSON.stringify(error));
$scope.state.paginating = false;
}
)
);
};
var updateMemberList = function(chunk) {
......
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