mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +02:00
Merge branch 'develop' into ismail/4384_room_summary_store
This commit is contained in:
@@ -64,6 +64,8 @@
|
||||
|
||||
// Custom title view of the navigation bar
|
||||
MainTitleView *titleView;
|
||||
|
||||
id spaceNotificationCounterDidUpdateNotificationCountObserver;
|
||||
}
|
||||
|
||||
@property(nonatomic,getter=isHidden) BOOL hidden;
|
||||
@@ -122,7 +124,7 @@
|
||||
childViewControllers = [NSMutableArray array];
|
||||
|
||||
MXWeakify(self);
|
||||
[[NSNotificationCenter defaultCenter] addObserverForName:MXSpaceService.didBuildSpaceGraph object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
|
||||
spaceNotificationCounterDidUpdateNotificationCountObserver = [[NSNotificationCenter defaultCenter] addObserverForName:MXSpaceNotificationCounter.didUpdateNotificationCount object:nil queue:nil usingBlock:^(NSNotification * _Nonnull note) {
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
[self updateSideMenuNotifcationIcon];
|
||||
}];
|
||||
@@ -272,6 +274,12 @@
|
||||
kThemeServiceDidChangeThemeNotificationObserver = nil;
|
||||
}
|
||||
|
||||
if (spaceNotificationCounterDidUpdateNotificationCountObserver)
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:spaceNotificationCounterDidUpdateNotificationCountObserver];
|
||||
spaceNotificationCounterDidUpdateNotificationCountObserver = nil;
|
||||
}
|
||||
|
||||
childViewControllers = nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user