Pass ProfChatWin to otr_on_message_send
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user