mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Bug Fix: App crashes on people screen
when user swipes down on the first section header.
This commit is contained in:
@@ -558,7 +558,7 @@
|
||||
if (firstSectionCell)
|
||||
{
|
||||
// Scroll to the top of the previous section (if any)
|
||||
if ([self.recentsTableView numberOfRowsInSection:(section - 1)] > 0)
|
||||
if (section && [self.recentsTableView numberOfRowsInSection:(section - 1)] > 0)
|
||||
{
|
||||
[self.recentsTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:(section - 1)] atScrollPosition:UITableViewScrollPositionTop animated:YES];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user