From d48213741ad8b52ff7169a148df9fa99b58b9890 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 16 Oct 2015 10:44:00 +0200 Subject: [PATCH] ChatRoom: avoid potential misposition of chatbubble when sending text --- Classes/ChatRoomViewController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/ChatRoomViewController.m b/Classes/ChatRoomViewController.m index 452e5392a..f24e58882 100644 --- a/Classes/ChatRoomViewController.m +++ b/Classes/ChatRoomViewController.m @@ -283,11 +283,10 @@ static void message_status(LinphoneChatMessage *msg, LinphoneChatMessageState st [LinphoneManager setValueInMessageAppData:[internalUrl absoluteString] forKey:@"localimage" inMessage:msg]; } + linphone_chat_room_send_message2(chatRoom, msg, message_status, (__bridge void *)(self)); [tableController addChatEntry:msg]; [tableController scrollToBottom:true]; - linphone_chat_room_send_message2(chatRoom, msg, message_status, (__bridge void *)(self)); - return TRUE; }