Fix: Room directory: stuck after the 20 first items

#1329
This commit is contained in:
manuroe
2017-06-21 14:45:43 +02:00
parent d518ff295e
commit 214baba2e2
+2 -2
View File
@@ -268,9 +268,9 @@
- (void)triggerDirectoryPagination
{
if (recentsDataSource.publicRoomsDirectoryDataSource.hasReachedPaginationEnd || footerSpinnerView)
if (!recentsDataSource || recentsDataSource.publicRoomsDirectoryDataSource.hasReachedPaginationEnd || footerSpinnerView)
{
// We got all public rooms or we are already paginating
// We are not yet ready or we got all public rooms or we are already paginating
// Do nothing
return;
}