Skip to content

Commit

Permalink
Don't remove pushInfoUpdateObserver in dealloc because it is remove…
Browse files Browse the repository at this point in the history
…d in `destroy`.

Signed-off-by: Nicolas Buquet <[email protected]>
  • Loading branch information
NicolasBuquet committed Oct 25, 2023
1 parent af0ea7a commit d50b82a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,6 @@ - (void)finalizeInit
}

- (void)dealloc {
// Remove observers
if (pushInfoUpdateObserver)
{
[[NSNotificationCenter defaultCenter] removeObserver:pushInfoUpdateObserver name:kMXKAccountAPNSActivityDidChangeNotification object:nil];
pushInfoUpdateObserver = nil;
}

// Fix for destroy not being called
[self destroy];
}
Expand Down

0 comments on commit d50b82a

Please sign in to comment.