mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-10 09:57:44 +02:00
Merge pull request #2000 from vector-im/gdpr_close_it_asap
GDPRConsentViewController: close it once the user has given their consent
This commit is contained in:
+6
-9
@@ -4067,20 +4067,17 @@ NSString *const kAppDelegateNetworkStatusDidChangeNotification = @"kAppDelegateN
|
||||
- (void)gdprConsentViewControllerDidConsentToGDPRWithSuccess:(GDPRConsentViewController *)gdprConsentViewController
|
||||
{
|
||||
MXSession *session = mxSessionArray.firstObject;
|
||||
|
||||
|
||||
// Leave the GDPR consent right now
|
||||
[self dismissGDPRConsent];
|
||||
|
||||
// And create the room with riot bot in //
|
||||
self.onBoardingManager = [[OnBoardingManager alloc] initWithSession:session];
|
||||
|
||||
MXWeakify(self);
|
||||
MXWeakify(gdprConsentViewController);
|
||||
|
||||
[gdprConsentViewController startActivityIndicator];
|
||||
|
||||
void (^createRiotBotDMcompletion)(void) = ^() {
|
||||
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
|
||||
[weakgdprConsentViewController stopActivityIndicator];
|
||||
[self dismissGDPRConsent];
|
||||
|
||||
self.onBoardingManager = nil;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user