mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
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:
commit
265c9e8498
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue