summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-22 20:06:00 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-22 20:06:00 +0300
commit1d8b7300f544bc7ad3a6b251ddb4bbe8e6120f26 (patch)
tree726487e7af8c2878db5fc2b4a2d73dd61dad7de1 /protocols
parentb9b13c24e57da1ad7a039d88935b3873d23a56d1 (diff)
Jabber: there's no need in message with url when we already got an offline file transfer
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp8
1 files changed, 5 insertions, 3 deletions
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");