mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-22 19:45:54 -04:00
ox: correctly recognize ox encrypted carbons
and dont display them as legacy pgp encrypted messages.
This was forgotten in 2c94ee5a8
.
Fix https://github.com/profanity-im/profanity/issues/1875
This commit is contained in:
parent
02c33474fa
commit
122434a276
@ -471,6 +471,8 @@ sv_ev_outgoing_carbon(ProfMessage* message)
|
||||
|
||||
if (message->enc == PROF_MSG_ENC_OMEMO) {
|
||||
chatwin_outgoing_carbon(chatwin, message);
|
||||
} else if (message->enc == PROF_MSG_ENC_OX) {
|
||||
chatwin_outgoing_carbon(chatwin, message);
|
||||
} else if (message->encrypted) {
|
||||
#ifdef HAVE_LIBGPGME
|
||||
message->plain = p_gpg_decrypt(message->encrypted);
|
||||
|
@ -467,6 +467,8 @@ chatwin_outgoing_carbon(ProfChatWin* chatwin, ProfMessage* message)
|
||||
enc_char = prefs_get_pgp_char();
|
||||
} else if (message->enc == PROF_MSG_ENC_OMEMO) {
|
||||
enc_char = prefs_get_omemo_char();
|
||||
} else if (message->enc == PROF_MSG_ENC_OX) {
|
||||
enc_char = prefs_get_ox_char();
|
||||
} else {
|
||||
enc_char = strdup("-");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user