From cd995f6a5bf58adb8d24a0d873fb66825ed95760 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 30 May 2022 19:51:56 +0300 Subject: added a message for non-capable clients --- protocols/JabberG/src/jabber_omemo.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index 91c42a925b..0a2aa68a73 100644 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -2024,6 +2024,9 @@ void CJabberProto::OmemoOnIqResultGetBundle(const TiXmlElement *iqNode, CJabberI int CJabberProto::OmemoEncryptMessage(XmlNode &msg, const char *msg_text, MCONTACT hContact) { + // a message for clients that do not support OMEMO + msg << XCHILD("body", "I sent you an OMEMO encrypted message but your client doesn’t seem to support that"); + const EVP_CIPHER *cipher = EVP_aes_128_gcm(); unsigned char key[16], iv[12], tag[16] /*, aad[48]*/; Utils_GetRandom(key, _countof_portable(key)); -- cgit v1.2.3