From 9f3a948b5f6d983b06e272ca7db2dbdbaf652a83 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 3 May 2024 13:22:40 +0300 Subject: minor code cleaning --- protocols/JabberG/src/jabber_thread.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 5a4a6e9219..bfd3933e75 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -420,9 +420,9 @@ bool CJabberProto::ServerThreadStub(ThreadData &info) NETLIBUSERSETTINGS us = {}; us.cbSize = sizeof(us); Netlib_GetUserSettings(m_hNetlibUser, &us); - if (us.useProxy && us.dnsThroughProxy) { - //TODO implement dns request thru proxy - } else + if (us.useProxy && us.dnsThroughProxy) + ; // TODO implement dns request thru proxy + else info.xmpp_client_query(); if (info.s == nullptr) { @@ -430,7 +430,7 @@ bool CJabberProto::ServerThreadStub(ThreadData &info) info.s = Netlib_OpenConnection(m_hNetlibUser, info.conn.manualHost, info.conn.port); if (info.s == nullptr && us.useProxy && us.dnsThroughProxy) PUShowMessageW(TranslateT("Requesting XMPP service address through proxy is not supported.\n" - "Please allow direct DNS in options or specify the hostname manually"), SM_WARNING); + "Please allow direct DNS in options or specify the hostname manually"), SM_WARNING); } } else info.s = Netlib_OpenConnection(m_hNetlibUser, info.conn.manualHost, info.conn.port); @@ -1296,7 +1296,7 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info) debugLogA("http auth event added, returning"); return; } - + if (m_bUseOMEMO) { if (auto *encNode = XmlGetChildByTag(node, "encrypted", "xmlns", JABBER_FEAT_OMEMO)) { OmemoHandleMessage(encNode, from, msgTime, bWasSent); @@ -1346,7 +1346,7 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info) FileProcessHttpDownload(hContact, from, url, XmlGetChildText(xNode, "desc")); return; } - + debugLogA("No URL in OOB file transfer, ignoring"); } else if (!mir_strcmp(pszXmlns, JABBER_FEAT_MUC_USER)) { -- cgit v1.2.3