User directory: Make sure a valid MXSession is provided to ContactsDataSource

https://github.com/vector-im/riot-meta/issues/95
This commit is contained in:
manuroe
2017-07-28 15:02:11 +02:00
parent ea6d3db96d
commit 62f612d5bb
5 changed files with 22 additions and 20 deletions
@@ -211,7 +211,7 @@
[filesSearchViewController displaySearch:filesSearchDataSource];
// Init the search for people
peopleSearchDataSource = [[ContactsDataSource alloc] init];
peopleSearchDataSource = [[ContactsDataSource alloc] initWithMatrixSession:mainSession];
peopleSearchDataSource.areSectionsShrinkable = YES;
peopleSearchDataSource.displaySearchInputInContactsList = YES;
peopleSearchDataSource.contactCellAccessoryType = UITableViewCellAccessoryDisclosureIndicator;