diff options
author | George Hazan <george.hazan@gmail.com> | 2023-05-19 13:29:13 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-05-19 13:29:13 +0300 |
commit | e47f92127158a7f8044e1c10e0908f88ddb52cb3 (patch) | |
tree | 0e2d05fc5d60673de8c493619173c3b526773c38 /protocols/JabberG/src/jabber_util.cpp | |
parent | f68f7312935f37e21597cbecf9cabc0705dea6d8 (diff) |
Jabber:- fixes #3521 (Управление OMEMO ключами);
- fixes #3352 (OMEMO: Encrypt for Self Devices);
- code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_util.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index b23244d3f8..165f00bcd3 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -51,6 +51,9 @@ MCONTACT CJabberProto::HContactFromJID(const char *jid, bool bStripResource) if (jid == nullptr)
return 0;
+ if (!strcmp(jid, m_szJabberJID ? m_szJabberJID : getMStringA("jid")))
+ return 0;
+
JABBER_LIST_ITEM *item = ListGetItemPtr(LIST_ROSTER, jid);
if (item != nullptr && item->hContact)
return item->hContact;
|