Skip to content

Commit

Permalink
Revert "Release kMXKAccountAPNSActivityDidChangeNotification observer…
Browse files Browse the repository at this point in the history
… when deallocation controller"

This reverts commit 6b8add7.
  • Loading branch information
Nicolas Buquet committed Oct 24, 2023
1 parent 4f60a7a commit f4e4cd0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -340,15 +340,6 @@ - (void)finalizeInit
self.screenTracker = [[AnalyticsScreenTracker alloc] initWithScreen:AnalyticsScreenSettings];
}

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

- (void)updateSections
{
NSMutableArray<Section*> *tmpSections = [NSMutableArray arrayWithCapacity:SECTION_TAG_DEACTIVATE_ACCOUNT + 1];
Expand Down
1 change: 0 additions & 1 deletion changelog.d/Settings-controller-dealloc-observer.bugfix

This file was deleted.

0 comments on commit f4e4cd0

Please sign in to comment.