Use events for chat sessions

This commit is contained in:
James Booth
2014-12-29 01:17:59 +00:00
parent 4be06c0ae2
commit 10a3a3a675
9 changed files with 152 additions and 152 deletions

View File

@@ -134,13 +134,13 @@ void handle_message_error_when_recipient_cancel_disables_chat_session(void **sta
prefs_set_boolean(PREF_STATES, TRUE);
chat_sessions_init();
chat_session_new(from, TRUE);
chat_session_on_incoming_message(from, TRUE);
expect_any(ui_handle_recipient_not_found, recipient);
expect_any(ui_handle_recipient_not_found, err_msg);
handle_message_error(from, type, err_msg);
gboolean chat_session_supported = chat_session_get_recipient_supports(from);
gboolean chat_session_supported = chat_session_on_message_send(from);
assert_false(chat_session_supported);
chat_sessions_clear();

View File

@@ -47,7 +47,7 @@ void ui_update(void) {}
void ui_close(void) {}
void ui_redraw(void) {}
void ui_resize(void) {}
GSList* ui_get_recipients(void)
GSList* ui_get_chat_recipients(void)
{
return NULL;
}