Refactored chat session handling on sending message

This commit is contained in:
James Booth
2015-01-04 23:40:10 +00:00
parent 42a5c431c7
commit 8326c8b3a2
13 changed files with 125 additions and 233 deletions

View File

@@ -141,9 +141,10 @@ void handle_message_error_when_recipient_cancel_disables_chat_session(void **sta
expect_any(ui_handle_recipient_not_found, err_msg);
handle_message_error(from, type, err_msg);
gboolean chat_session_supported = chat_session_on_message_send(from);
chat_session_on_message_send(from);
gboolean send_states = chat_session_send_states(from);
assert_false(chat_session_supported);
assert_false(send_states);
chat_sessions_clear();
}