mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Fix crash when pressing tabs
This commit is contained in:
@@ -600,9 +600,13 @@
|
||||
{
|
||||
[self.collectionViewPaginationThrottler throttle:^{
|
||||
NSInteger collectionViewSection = indexPath.section;
|
||||
if (collectionView.numberOfSections <= collectionViewSection)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
NSInteger numberOfItemsInSection = [collectionView numberOfItemsInSection:collectionViewSection];
|
||||
if (collectionView.numberOfSections > collectionViewSection
|
||||
&& indexPath.item == numberOfItemsInSection - 1)
|
||||
if (indexPath.item == numberOfItemsInSection - 1)
|
||||
{
|
||||
NSInteger tableViewSection = collectionView.tag;
|
||||
[self->recentsDataSource paginateInSection:tableViewSection];
|
||||
|
||||
Reference in New Issue
Block a user