diff --git a/Classes/ChatConversationView.m b/Classes/ChatConversationView.m index c1534faba..35be6b99d 100644 --- a/Classes/ChatConversationView.m +++ b/Classes/ChatConversationView.m @@ -205,6 +205,7 @@ static UICompositeViewDescription *compositeDescription = nil; if (_chatRoom && _chatRoomCbs) { linphone_chat_room_remove_callbacks(_chatRoom, _chatRoomCbs); _chatRoomCbs = NULL; + _chatRoom = NULL; } [_messageField resignFirstResponder]; @@ -218,6 +219,7 @@ static UICompositeViewDescription *compositeDescription = nil; - (void)didEnterBackground:(NSNotification *)notif { linphone_chat_room_remove_callbacks(_chatRoom, _chatRoomCbs); _chatRoomCbs = NULL; + _chatRoom = NULL; } - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {