mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
BF: Wait for the room_id being resolved before starting pagination
This commit is contained in:
parent
583add34fe
commit
96da42085c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user