Merge pull request #4607 from vector-im/doug/4606_fix_authentication_crash

Fix crash from potentially calling removeObserver multiple times.
This commit is contained in:
Doug 2021-07-26 17:07:36 +01:00 committed by GitHub
commit 265c9e8498
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@ Changes to be released in next version
* Room: Fixed mentioning users from room info member details (#4583)
* Settings: Disabled autocorrection when entering an identity server (#4593).
* Room Notification Settings: Fix Crash when opening the new Room Notification Settings Screen (Not yet released) (#4599).
* AuthenticationViewController: Fix crash on authentication if an intermediate view was presented (#4606).
⚠️ API Changes
*

View file

@ -354,8 +354,6 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
{
[_keyboardAvoider stopAvoiding];
[self.authenticationActivityIndicator removeObserver:self forKeyPath:@"hidden"];
[super viewDidDisappear:animated];
}
@ -384,6 +382,8 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
[[NSNotificationCenter defaultCenter] removeObserver:universalLinkDidChangeNotificationObserver];
universalLinkDidChangeNotificationObserver = nil;
}
[self.authenticationActivityIndicator removeObserver:self forKeyPath:@"hidden"];
autoDiscovery = nil;
_keyVerificationCoordinatorBridgePresenter = nil;