Added preference for encryption char

This commit is contained in:
James Booth
2015-08-26 01:06:10 +01:00
parent 48630d45a4
commit 1bf584793f
4 changed files with 63 additions and 4 deletions

View File

@@ -1291,9 +1291,9 @@ ui_outgoing_chat_msg(ProfChatWin *chatwin, const char * const message, char *id,
{
char enc_char = '-';
if (enc_mode == PROF_ENC_OTR) {
enc_char = 'O';
enc_char = prefs_get_otr_char();
} else if (enc_mode == PROF_ENC_PGP) {
enc_char = 'P';
enc_char = prefs_get_pgp_char();
}
if (prefs_get_boolean(PREF_RECEIPTS_REQUEST) && id) {

View File

@@ -885,9 +885,9 @@ win_print_incoming_message(ProfWin *window, GDateTime *timestamp,
{
case WIN_CHAT:
if (enc_mode == PROF_ENC_OTR) {
enc_char = 'O';
enc_char = prefs_get_otr_char();
} else if (enc_mode == PROF_ENC_PGP) {
enc_char = 'P';
enc_char = prefs_get_pgp_char();
}
win_print(window, enc_char, 0, timestamp, NO_ME, THEME_TEXT_THEM, from, message);
break;