diff --git a/Riot/ViewController/PeopleViewController.m b/Riot/ViewController/PeopleViewController.m index af559984e..f5ff996b1 100644 --- a/Riot/ViewController/PeopleViewController.m +++ b/Riot/ViewController/PeopleViewController.m @@ -69,7 +69,7 @@ // Register table view cell for contacts. [self.recentsTableView registerClass:ContactTableViewCell.class forCellReuseIdentifier:ContactTableViewCell.defaultReuseIdentifier]; - // Redirect table data source + // Change the table data source. It must be the people view controller itself. self.recentsTableView.dataSource = self; self.enableStickyHeaders = YES; @@ -110,6 +110,16 @@ [super viewWillDisappear:animated]; } +#pragma mark - + +- (void)displayList:(MXKRecentsDataSource *)listDataSource +{ + [super displayList:listDataSource]; + + // Change the table data source. It must be the people view controller itself. + self.recentsTableView.dataSource = self; +} + #pragma mark - MXKDataSourceDelegate - (Class)cellViewClassForCellData:(MXKCellData*)cellData