Pass ProfChatWin to otr_on_message_send

This commit is contained in:
James Booth
2015-05-02 23:23:12 +01:00
parent 0118178080
commit be4ee40ed4
4 changed files with 22 additions and 52 deletions

View File

@@ -66,11 +66,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg)
chat_state_active(chatwin->state);
#ifdef HAVE_LIBOTR
prof_otrsendres_t res = otr_on_message_send(chatwin->barejid, msg);
if (res != PROF_OTRSUCCESS) {
char *errmsg = otr_senderror_str(res);
ui_win_error_line((ProfWin*)chatwin, errmsg);
}
otr_on_message_send(chatwin, msg);
#else
char *id = message_send_chat(chatwin->barejid, msg);
chat_log_msg_out(chatwin->barejid, msg);