Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
17ee1f15
Commit
17ee1f15
authored
Feb 22, 2016
by
Gautier Pelloux-Prayer
Browse files
chat.c: dont change message state to in progress if we failed to send it
parent
1f82ae28
Changes
1
Hide whitespace changes
Inline
Side-by-side
coreapi/chat.c
View file @
17ee1f15
...
...
@@ -418,7 +418,10 @@ void _linphone_chat_room_send_message(LinphoneChatRoom *cr, LinphoneChatMessage
linphone_chat_room_delete_composing_refresh_timer
(
cr
);
}
linphone_chat_message_set_state
(
msg
,
LinphoneChatMessageStateInProgress
);
// if operation failed, we should not change message state
if
(
msg
->
state
==
LinphoneChatMessageOutgoing
)
{
linphone_chat_message_set_state
(
msg
,
LinphoneChatMessageStateInProgress
);
}
}
void
linphone_chat_message_update_state
(
LinphoneChatMessage
*
msg
,
LinphoneChatMessageState
new_state
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment