]> sjero.net Git - linphone/blobdiff - coreapi/chat.c
history chat delete
[linphone] / coreapi / chat.c
index 5f79849dc4fe6de20b0f02c7b0eccdd809d64f38..046c3473368ff9d0999284f9dd80fa875a287ee4 100644 (file)
@@ -182,10 +182,10 @@ void linphone_core_message_received(LinphoneCore *lc, SalOp *op, const SalMessag
                linphone_chat_message_set_external_body_url(msg, sal_msg->url);
        }
        linphone_address_destroy(addr);
-       linphone_chat_room_message_received(cr,lc,msg);
        linphone_core_set_history_message(cr,to,from,INCOMING,
                                msg->message,my_ctime_r(&msg->time,buf),NOT_READ,
                                LinphoneChatMessageStateDelivered);
+       linphone_chat_room_message_received(cr,lc,msg);
        ms_free(cleanfrom);
        ms_free(from);
 }