mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 09:32:52 +02:00
Reload section if total number of rooms changes, fixes #5448
This commit is contained in:
@@ -1006,12 +1006,12 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
- (void)dataSource:(MXKDataSource *)dataSource didCellChange:(id)changes
|
||||
{
|
||||
BOOL cellReloaded = NO;
|
||||
if ([changes isKindOfClass:NSNumber.class])
|
||||
if ([changes isKindOfClass:RecentsSectionUpdate.class])
|
||||
{
|
||||
NSInteger section = ((NSNumber *)changes).integerValue;
|
||||
if (section >= 0)
|
||||
RecentsSectionUpdate *update = (RecentsSectionUpdate*)changes;
|
||||
if (update.isValid && !update.totalCountsChanged)
|
||||
{
|
||||
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:section];
|
||||
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:update.sectionIndex];
|
||||
UITableViewCell *cell = [self.recentsTableView cellForRowAtIndexPath:indexPath];
|
||||
if ([cell isKindOfClass:TableViewCellWithCollectionView.class])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user