mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Reload section if total number of rooms changes, fixes #5448
This commit is contained in:
@@ -1467,12 +1467,14 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
#pragma mark - RecentsListServiceDelegate
|
||||
|
||||
- (void)recentsListServiceDidChangeData:(id<RecentsListServiceProtocol>)service
|
||||
totalCountsChanged:(BOOL)totalCountsChanged
|
||||
{
|
||||
// no-op
|
||||
}
|
||||
|
||||
- (void)recentsListServiceDidChangeData:(id<RecentsListServiceProtocol>)service
|
||||
forSection:(RecentsListServiceSection)section
|
||||
totalCountsChanged:(BOOL)totalCountsChanged
|
||||
{
|
||||
NSInteger sectionIndex = -1;
|
||||
switch (section)
|
||||
@@ -1499,8 +1501,10 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
|
||||
sectionIndex = suggestedRoomsSection;
|
||||
break;
|
||||
}
|
||||
|
||||
[self.delegate dataSource:self didCellChange:@(sectionIndex)];
|
||||
|
||||
RecentsSectionUpdate *update = [[RecentsSectionUpdate alloc] initWithSectionIndex:sectionIndex
|
||||
totalCountsChanged:totalCountsChanged];
|
||||
[self.delegate dataSource:self didCellChange:update];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user