From 023f3849e1e2b8bdb079164d5520f50bdd681d42 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Tue, 23 Feb 2016 01:02:47 +0100 Subject: [PATCH] Revert "chat.c: dont change message state to in progress if we failed to send it" This reverts commit 17ee1f15902825fd5e8b31693c54dd6f7c0b98ff. --- coreapi/chat.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/coreapi/chat.c b/coreapi/chat.c index 6620b6bf1..3cabe976c 100644 --- a/coreapi/chat.c +++ b/coreapi/chat.c @@ -418,10 +418,7 @@ void _linphone_chat_room_send_message(LinphoneChatRoom *cr, LinphoneChatMessage linphone_chat_room_delete_composing_refresh_timer(cr); } - // if operation failed, we should not change message state - if (msg->state == LinphoneChatMessageOutgoing) { - linphone_chat_message_set_state(msg, LinphoneChatMessageStateInProgress); - } + linphone_chat_message_set_state(msg, LinphoneChatMessageStateInProgress); } void linphone_chat_message_update_state(LinphoneChatMessage *msg, LinphoneChatMessageState new_state) {