chat.c: set chat direction before sending chat message

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-14 09:36:23 +02:00
parent 7c84d4f263
commit 217f50fa31

View file

@ -326,6 +326,8 @@ void _linphone_chat_room_send_message(LinphoneChatRoom *cr, LinphoneChatMessage
return;
}
msg->dir = LinphoneChatMessageOutgoing;
// add to transient list
cr->transient_messages = ms_list_append(cr->transient_messages, linphone_chat_message_ref(msg));
@ -392,7 +394,6 @@ void _linphone_chat_room_send_message(LinphoneChatRoom *cr, LinphoneChatMessage
ms_free(peer_uri);
}
msg->dir = LinphoneChatMessageOutgoing;
if (msg->from){
/*
* BUG