From 217f50fa311ec103caaa20147cc6160c0d72c76b Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 14 Oct 2015 09:36:23 +0200 Subject: [PATCH] chat.c: set chat direction before sending chat message --- coreapi/chat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index 0be5eb1ec..b1980c7fc 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -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