Send private carbons element with message when encrypted

This commit is contained in:
James Booth
2015-03-10 21:16:34 +00:00
parent 3c1e8c4e15
commit 2ff6873cf1
10 changed files with 62 additions and 19 deletions

View File

@@ -551,8 +551,8 @@ cmd_otr_start_sends_otr_query_message_to_current_recipeint(void **state)
will_return(otr_key_loaded, TRUE);
will_return(otr_start_query, query_message);
expect_string(message_send_chat, barejid, chatwin->barejid);
expect_string(message_send_chat, msg, query_message);
expect_string(message_send_chat_encrypted, barejid, chatwin->barejid);
expect_string(message_send_chat_encrypted, msg, query_message);
gboolean result = cmd_otr(args, *help);
assert_true(result);

View File

@@ -64,6 +64,12 @@ void message_send_chat(const char * const barejid, const char * const msg)
check_expected(msg);
}
void message_send_chat_encrypted(const char * const barejid, const char * const msg)
{
check_expected(barejid);
check_expected(msg);
}
void message_send_private(const char * const fulljid, const char * const msg) {}
void message_send_groupchat(const char * const roomjid, const char * const msg) {}
void message_send_groupchat_subject(const char * const roomjid, const char * const subject) {}