ChatRoom: avoid potential misposition of chatbubble when sending text

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-16 10:44:00 +02:00
parent ede21a9aca
commit d48213741a

View file

@ -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;
}