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
@@ -615,7 +615,7 @@
contactsPickerViewController.contactsTableViewControllerDelegate = self;
// Prepare its data source
ContactsDataSource *contactsDataSource = [[ContactsDataSource alloc] init];
ContactsDataSource *contactsDataSource = [[ContactsDataSource alloc] initWithMatrixSession:self.mxRoom.mxSession];
contactsDataSource.areSectionsShrinkable = YES;
contactsDataSource.displaySearchInputInContactsList = YES;
contactsDataSource.forceMatrixIdInDisplayName = YES;