diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-22 20:06:00 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-22 20:06:00 +0300 |
commit | 1d8b7300f544bc7ad3a6b251ddb4bbe8e6120f26 (patch) | |
tree | 726487e7af8c2878db5fc2b4a2d73dd61dad7de1 /protocols | |
parent | b9b13c24e57da1ad7a039d88935b3873d23a56d1 (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.cpp | 8 |
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");
|