From 1d8b7300f544bc7ad3a6b251ddb4bbe8e6120f26 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 Dec 2023 20:06:00 +0300 Subject: Jabber: there's no need in message with url when we already got an offline file transfer --- protocols/JabberG/src/jabber_thread.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 9a3c833339..24864a0116 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1324,10 +1324,12 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info) } } else if (!mir_strcmp(pszXmlns, JABBER_FEAT_OOB2)) { - if (auto *url = XmlGetChildText(xNode, "url")) + if (auto *url = XmlGetChildText(xNode, "url")) { FileProcessHttpDownload(hContact, from, url, XmlGetChildText(xNode, "desc")); - else - debugLogA("No URL in OOB file transfer, ignoring"); + return; + } + + debugLogA("No URL in OOB file transfer, ignoring"); } else if (!mir_strcmp(pszXmlns, JABBER_FEAT_MUC_USER)) { auto *inviteNode = XmlFirstChild(xNode, "invite"); -- cgit v1.2.3