Fix: Room directory: stuck after the 20 first items

https://github.com/vector-im/riot-ios/issues/1329#issuecomment-310361132
This commit is contained in:
manuroe
2017-06-23 11:44:13 +02:00
parent a037a39834
commit 297a1cedfb
+5 -2
View File
@@ -273,9 +273,12 @@
- (void)triggerDirectoryPagination
{
if (!recentsDataSource || recentsDataSource.publicRoomsDirectoryDataSource.hasReachedPaginationEnd || footerSpinnerView)
if (!recentsDataSource
|| recentsDataSource.state == MXKDataSourceStateUnknown
|| recentsDataSource.publicRoomsDirectoryDataSource.hasReachedPaginationEnd
|| footerSpinnerView)
{
// We are not yet ready or we got all public rooms or we are already paginating
// We are not yet ready or being killed or we got all public rooms or we are already paginating
// Do nothing
return;
}