Display special char for encrypted messages
This commit is contained in:
@@ -97,13 +97,13 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg)
|
||||
if (!handled) {
|
||||
char *id = message_send_chat(chatwin->barejid, msg);
|
||||
chat_log_msg_out(chatwin->barejid, msg);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id, PROF_ENC_NONE);
|
||||
free(id);
|
||||
}
|
||||
} else { // enc_mode = PROF_ENC_PGP
|
||||
char *id = message_send_chat_pgp(chatwin->barejid, msg);
|
||||
chat_log_pgp_msg_out(chatwin->barejid, msg);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id, PROF_ENC_PGP);
|
||||
free(id);
|
||||
}
|
||||
return;
|
||||
@@ -117,7 +117,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg)
|
||||
if (!handled) {
|
||||
char *id = message_send_chat(chatwin->barejid, msg);
|
||||
chat_log_msg_out(chatwin->barejid, msg);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id, PROF_ENC_NONE);
|
||||
free(id);
|
||||
}
|
||||
return;
|
||||
@@ -131,12 +131,12 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg)
|
||||
if (enc_mode == PROF_ENC_NONE) {
|
||||
char *id = message_send_chat(chatwin->barejid, msg);
|
||||
chat_log_msg_out(chatwin->barejid, msg);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id, PROF_ENC_NONE);
|
||||
free(id);
|
||||
} else if (enc_mode == PROF_ENC_PGP) {
|
||||
char *id = message_send_chat_pgp(chatwin->barejid, msg);
|
||||
chat_log_pgp_msg_out(chatwin->barejid, msg);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id, PROF_ENC_PGP);
|
||||
free(id);
|
||||
}
|
||||
return;
|
||||
@@ -148,7 +148,7 @@ cl_ev_send_msg(ProfChatWin *chatwin, const char * const msg)
|
||||
#ifndef HAVE_LIBGPGME
|
||||
char *id = message_send_chat(chatwin->barejid, msg);
|
||||
chat_log_msg_out(chatwin->barejid, msg);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id);
|
||||
ui_outgoing_chat_msg(chatwin, msg, id, PROF_ENC_NONE;
|
||||
free(id);
|
||||
return;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user