mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Settings > Security: More cleaning
This commit is contained in:
@@ -366,10 +366,8 @@ UIDocumentInteractionControllerDelegate>
|
||||
- (void)loadDevices
|
||||
{
|
||||
// Refresh the account devices list
|
||||
MXKAccount* account = [MXKAccountManager sharedManager].activeAccounts.firstObject;
|
||||
|
||||
MXWeakify(self);
|
||||
[account.mxRestClient devices:^(NSArray<MXDevice *> *devices) {
|
||||
[self.mainSession.matrixRestClient devices:^(NSArray<MXDevice *> *devices) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
if (devices)
|
||||
@@ -629,13 +627,6 @@ UIDocumentInteractionControllerDelegate>
|
||||
UITableViewCell *cell = [[UITableViewCell alloc] init];
|
||||
cell.backgroundColor = [UIColor redColor];
|
||||
|
||||
// check if there is a valid session
|
||||
if (([AppDelegate theDelegate].mxSessions.count == 0) || ([MXKAccountManager sharedManager].activeAccounts.count == 0))
|
||||
{
|
||||
// else use a default cell
|
||||
return cell;
|
||||
}
|
||||
|
||||
MXSession* session = self.mainSession;
|
||||
if (section == SETTINGS_SECTION_DEVICES_INDEX)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user