1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

XEP-0027: Mention XEP in message body

With all the different kinds of encryption (OMEMO, OTR3 OTR4, PGP in XEP-0027 and XEP-0373) it might be helpful to know which kind of encryption is used.
This commit is contained in:
Michael Vetter 2019-02-20 10:48:28 +01:00
parent c8f55ed338
commit 4792984f1e

View File

@ -181,7 +181,7 @@ message_send_chat_pgp(const char *const barejid, const char *const msg, gboolean
char *encrypted = p_gpg_encrypt(jidp->barejid, msg, account->pgp_keyid);
if (encrypted) {
message = xmpp_message_new(ctx, STANZA_TYPE_CHAT, jid, id);
xmpp_message_set_body(message, "This message is encrypted.");
xmpp_message_set_body(message, "This message is encrypted (XEP-0027).");
xmpp_stanza_t *x = xmpp_stanza_new(ctx);
xmpp_stanza_set_name(x, STANZA_NAME_X);
xmpp_stanza_set_ns(x, STANZA_NS_ENCRYPTED);