New async [MXRoom state:]: MXKSearchCellDataStoring: Replace initWithSearchResult by async cellDataWithSearchResult

This commit is contained in:
manuroe
2018-07-20 15:27:54 +02:00
parent 25626d275c
commit 98b0b2371e
3 changed files with 74 additions and 44 deletions

View File

@@ -52,7 +52,7 @@
[super destroy];
}
- (void)convertHomeserverResultsIntoCells:(MXSearchRoomEventResults *)roomEventResults
- (void)convertHomeserverResultsIntoCells:(MXSearchRoomEventResults *)roomEventResults onComplete:(dispatch_block_t)onComplete
{
// Prepare text font used to highlight the search pattern.
UIFont *patternFont = [roomDataSource.eventFormatter bingTextFont];
@@ -73,6 +73,8 @@
[cellDataArray insertObject:cellData atIndex:0];
}
}
onComplete();
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath