Set _chatRoom to NULL when ChatConversationView disappears to avoir keeping invalid references

This commit is contained in:
QuentinArguillere 2022-11-22 17:24:10 +01:00
parent c3746801ac
commit d447158a25

View file

@ -313,6 +313,7 @@ static UICompositeViewDescription *compositeDescription = nil;
[NSNotificationCenter.defaultCenter removeObserver:self];
PhoneMainView.instance.currentRoom = NULL;
[[UIApplication sharedApplication] setIdleTimerDisabled:false];
_chatRoom = NULL;
}
- (void)removeCallBacks {