mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Security settings: Refresh cross-signing state on opening
This commit is contained in:
@@ -220,6 +220,8 @@ UIDocumentInteractionControllerDelegate>
|
||||
|
||||
// Refresh devices in parallel
|
||||
[self loadDevices];
|
||||
|
||||
[self loadCrossSigning];
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated
|
||||
@@ -398,6 +400,20 @@ UIDocumentInteractionControllerDelegate>
|
||||
|
||||
#pragma mark - Cross-signing
|
||||
|
||||
- (void)loadCrossSigning
|
||||
{
|
||||
MXCrossSigning *crossSigning = self.mainSession.crypto.crossSigning;
|
||||
|
||||
[crossSigning refreshStateWithSuccess:^(BOOL stateUpdated) {
|
||||
if (stateUpdated)
|
||||
{
|
||||
[self reloadData];
|
||||
}
|
||||
} failure:^(NSError * _Nonnull error) {
|
||||
NSLog(@"[SecurityVC] loadCrossSigning: Cannot refresh cross-signing state. Error: %@", error);
|
||||
}];
|
||||
}
|
||||
|
||||
- (NSInteger)numberOfRowsInCrossSigningSection
|
||||
{
|
||||
NSInteger numberOfRowsInCrossSigningSection;
|
||||
|
||||
Reference in New Issue
Block a user