about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-06-29 13:26:15 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-06-29 13:26:15 +0200
commit449c7ce2bad75438e5cff6733366e0ada153a23e (patch)
tree0801721e2a87933f0b3b72da83c515b582636a71
parentd8645a875bd8a90e47b5eed48cbb3342612a2c28 (diff)
downloadprofani-tty-449c7ce2bad75438e5cff6733366e0ada153a23e.tar.gz
ox: add helper message in case signcrypt doesnt work
Most likely they didnt trust/sign the key. Which is described in the
profanity-ox-setup man page.
-rw-r--r--src/xmpp/message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/message.c b/src/xmpp/message.c
index b5f0dbd9..3eca25d0 100644
--- a/src/xmpp/message.c
+++ b/src/xmpp/message.c
@@ -548,6 +548,7 @@ message_send_chat_ox(const char* const barejid, const char* const msg, gboolean
     xmpp_stanza_to_text(signcrypt, &c, &s);
     char* signcrypt_e = p_ox_gpg_signcrypt(account->jid, barejid, c);
     if (signcrypt_e == NULL) {
+        cons_show("Unable to send OX message. Check log file and profanity-ox-setup man page for details.");
         log_error("Message not signcrypted.");
         return NULL;
     }