key backup settings: Manage backup created from the device

This commit is contained in:
manuroe
2019-01-31 18:41:00 +01:00
parent 6de109b332
commit 42a91d7aa8
4 changed files with 15 additions and 6 deletions
@@ -328,8 +328,14 @@ KeyBackupRecoverCoordinatorBridgePresenterDelegate>
if (self.mainSession.crypto.backup)
{
keyBackupSection = [[SettingsKeyBackupTableViewSection alloc] initWithKeyBackup:self.mainSession.crypto.backup];
keyBackupSection.delegate = self;
MXDeviceInfo *deviceInfo = [self.mainSession.crypto.deviceList storedDevice:self.mainSession.matrixRestClient.credentials.userId
deviceId:self.mainSession.matrixRestClient.credentials.deviceId];
if (deviceInfo)
{
keyBackupSection = [[SettingsKeyBackupTableViewSection alloc] initWithKeyBackup:self.mainSession.crypto.backup userDevice:deviceInfo];
keyBackupSection.delegate = self;
}
}
groupsDataSource = [[GroupsDataSource alloc] initWithMatrixSession:self.mainSession];