mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
pgp: Fixed compilation error when libotr is not supported
This commit is contained in:
parent
2d3537515d
commit
6a73ca1b52
@ -254,9 +254,8 @@ sv_ev_incoming_message(char *barejid, char *resource, char *message, char *enc_m
|
|||||||
// OTR unsupported, PGP supported
|
// OTR unsupported, PGP supported
|
||||||
#ifndef HAVE_LIBOTR
|
#ifndef HAVE_LIBOTR
|
||||||
#ifdef HAVE_LIBGPGME
|
#ifdef HAVE_LIBGPGME
|
||||||
prof_enc_t enc_mode = chatwin->enc_mode;
|
|
||||||
if (enc_message) {
|
if (enc_message) {
|
||||||
char *decrypted = p_gpg_decrypt(jid->barejid, enc_message);
|
char *decrypted = p_gpg_decrypt(barejid, enc_message);
|
||||||
if (decrypted) {
|
if (decrypted) {
|
||||||
ui_incoming_msg(chatwin, resource, decrypted, NULL, new_win);
|
ui_incoming_msg(chatwin, resource, decrypted, NULL, new_win);
|
||||||
chat_log_pgp_msg_in(barejid, decrypted);
|
chat_log_pgp_msg_in(barejid, decrypted);
|
||||||
|
Loading…
Reference in New Issue
Block a user