forked from mirrors/linphone-iphone
chat.c: set chat direction before sending chat message
This commit is contained in:
parent
7c84d4f263
commit
217f50fa31
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue