mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Merge pull request #1878 from profanity-im/fix/oxcarbon
ox: correctly recognize ox encrypted carbons
This commit is contained in:
commit
568266ec6b
@ -471,6 +471,8 @@ sv_ev_outgoing_carbon(ProfMessage* message)
|
|||||||
|
|
||||||
if (message->enc == PROF_MSG_ENC_OMEMO) {
|
if (message->enc == PROF_MSG_ENC_OMEMO) {
|
||||||
chatwin_outgoing_carbon(chatwin, message);
|
chatwin_outgoing_carbon(chatwin, message);
|
||||||
|
} else if (message->enc == PROF_MSG_ENC_OX) {
|
||||||
|
chatwin_outgoing_carbon(chatwin, message);
|
||||||
} else if (message->encrypted) {
|
} else if (message->encrypted) {
|
||||||
#ifdef HAVE_LIBGPGME
|
#ifdef HAVE_LIBGPGME
|
||||||
message->plain = p_gpg_decrypt(message->encrypted);
|
message->plain = p_gpg_decrypt(message->encrypted);
|
||||||
|
@ -467,6 +467,8 @@ chatwin_outgoing_carbon(ProfChatWin* chatwin, ProfMessage* message)
|
|||||||
enc_char = prefs_get_pgp_char();
|
enc_char = prefs_get_pgp_char();
|
||||||
} else if (message->enc == PROF_MSG_ENC_OMEMO) {
|
} else if (message->enc == PROF_MSG_ENC_OMEMO) {
|
||||||
enc_char = prefs_get_omemo_char();
|
enc_char = prefs_get_omemo_char();
|
||||||
|
} else if (message->enc == PROF_MSG_ENC_OX) {
|
||||||
|
enc_char = prefs_get_ox_char();
|
||||||
} else {
|
} else {
|
||||||
enc_char = strdup("-");
|
enc_char = strdup("-");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user