mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 19:34:25 +02:00
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:
@@ -50,11 +50,6 @@
|
||||
contactsSectionNumber = 0;
|
||||
|
||||
self.screenName = @"People";
|
||||
|
||||
// Prepare its contacts data source
|
||||
contactsDataSource = [[ContactsDataSource alloc] init];
|
||||
contactsDataSource.contactCellAccessoryType = UITableViewCellAccessoryDisclosureIndicator;
|
||||
contactsDataSource.delegate = self;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
@@ -151,6 +146,13 @@
|
||||
recentsDataSource = (RecentsDataSource*)listDataSource;
|
||||
}
|
||||
|
||||
if (!contactsDataSource)
|
||||
{
|
||||
// Prepare its contacts data source
|
||||
contactsDataSource = [[ContactsDataSource alloc] initWithMatrixSession:listDataSource.mxSession];
|
||||
contactsDataSource.contactCellAccessoryType = UITableViewCellAccessoryDisclosureIndicator;
|
||||
contactsDataSource.delegate = self;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - MXKDataSourceDelegate
|
||||
|
||||
Reference in New Issue
Block a user