ui_outgoing_chat_msg now takes ProfChatWin as argument

This commit is contained in:
James Booth
2015-05-04 00:55:43 +01:00
parent c3d2a7e937
commit ef54ff305e
5 changed files with 13 additions and 15 deletions

View File

@@ -325,7 +325,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char * const message)
if (encrypted) {
id = message_send_chat_encrypted(chatwin->barejid, encrypted);
chat_log_otr_msg_out(chatwin->barejid, message);
ui_outgoing_chat_msg(chatwin->barejid, message, id);
ui_outgoing_chat_msg(chatwin, message, id);
otr_free_message(encrypted);
} else {
ui_win_error_line((ProfWin*)chatwin, "Failed to encrypt and send message.");
@@ -339,13 +339,13 @@ otr_on_message_send(ProfChatWin *chatwin, const char * const message)
} else if (policy == PROF_OTRPOLICY_OPPORTUNISTIC) {
char *otr_tagged_msg = otr_tag_message(message);
id = message_send_chat_encrypted(chatwin->barejid, otr_tagged_msg);
ui_outgoing_chat_msg(chatwin->barejid, message, id);
ui_outgoing_chat_msg(chatwin, message, id);
chat_log_msg_out(chatwin->barejid, message);
free(otr_tagged_msg);
} else {
id = message_send_chat(chatwin->barejid, message);
ui_outgoing_chat_msg(chatwin->barejid, message, id);
ui_outgoing_chat_msg(chatwin, message, id);
chat_log_msg_out(chatwin->barejid, message);
}