From 5e61d6cc38062d88bcf0c7057b6c1c72cd265622 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sat, 28 Apr 2018 08:15:17 +0300 Subject: protocols: jabber: xep-0198 - keep contacts status for session resume if resume is possible - reset status only if resume failed --- protocols/JabberG/src/jabber_strm_mgmt.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/JabberG/src/jabber_strm_mgmt.cpp') diff --git a/protocols/JabberG/src/jabber_strm_mgmt.cpp b/protocols/JabberG/src/jabber_strm_mgmt.cpp index 1856997270..025dff2395 100755 --- a/protocols/JabberG/src/jabber_strm_mgmt.cpp +++ b/protocols/JabberG/src/jabber_strm_mgmt.cpp @@ -167,6 +167,11 @@ void strm_mgmt::OnProcessFailed(HXML node, ThreadData * info) //used failed inst m_bStrmMgmtEnabled = false; bSessionResumed = false; m_sStrmMgmtResumeId.clear(); + + //resume failed, reset contacts status + for (auto &hContact : proto->AccContacts()) + proto->SetContactOfflineStatus(hContact); + { HXML subnode = XmlGetChild(node, L"item-not-found"); if (subnode) -- cgit v1.2.3