From f6de70b5af14114d507f39d7a144fef75c3adcf7 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Fri, 7 Mar 2014 15:05:16 +0100 Subject: [PATCH] Don't destroy chatrooms, they should be kept in-memory to handle message updates --- Classes/ChatRoomViewController.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Classes/ChatRoomViewController.m b/Classes/ChatRoomViewController.m index 22418207e..2f882f1df 100644 --- a/Classes/ChatRoomViewController.m +++ b/Classes/ChatRoomViewController.m @@ -198,11 +198,8 @@ static UICompositeViewDescription *compositeDescription = nil; } [messageField resignFirstResponder]; - - if(chatRoom != NULL) { - linphone_chat_room_destroy(chatRoom); - chatRoom = NULL; - } + + chatRoom = NULL; [self setComposingVisible:FALSE withDelay:0]; // will hide the "user is composing.." message