From 448a44b7e45e2fed86c4b8fa9ebb26bf9849304b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 4 May 2020 13:30:00 +0300 Subject: Jabber: setting status to ID_STATUS_IDLE was very bad idea... --- protocols/JabberG/src/jabber_thread.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index e10d285b74..df2a582355 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1572,11 +1572,9 @@ void CJabberProto::OnProcessPresence(const TiXmlElement *node, ThreadData *info) } int idleTime = 0; - if (auto *idle = XmlGetChildByTag(node, "idle", "xmlns", JABBER_FEAT_IDLE)) { - status = ID_STATUS_IDLE; + if (auto *idle = XmlGetChildByTag(node, "idle", "xmlns", JABBER_FEAT_IDLE)) if (auto *szSince = XmlGetAttr(idle, "since")) idleTime = str2time(szSince); - } int priority = XmlGetChildInt(node, "priority"); const char *pszStatus = XmlGetChildText(node, "status"); -- cgit v1.2.3