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:
manuroe
2018-08-24 10:41:28 +00:00
committed by GitHub
+6 -9
View File
@@ -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;
};