summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_polling.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-03 22:13:22 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-03 22:13:27 +0300
commitfc73bfb84eeaf09ef147774c92ea2b8592032122 (patch)
tree67737f47161e96c59488a7fc3eca82960a8b276c /protocols/Teams/src/teams_polling.cpp
parent0f361039b66b42b704b6b3601a1c3a88e317cc7d (diff)
Teams: minus polling
Diffstat (limited to 'protocols/Teams/src/teams_polling.cpp')
-rw-r--r--protocols/Teams/src/teams_polling.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/protocols/Teams/src/teams_polling.cpp b/protocols/Teams/src/teams_polling.cpp
index ca59ac8f6a..11a918034e 100644
--- a/protocols/Teams/src/teams_polling.cpp
+++ b/protocols/Teams/src/teams_polling.cpp
@@ -17,42 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
-void CTeamsProto::PollingThread(void *)
-{
- debugLogA(__FUNCTION__ ": entering");
-
- m_iPollingId = -1;
-
- while (true) {
- if (m_isTerminated || m_szId == nullptr)
- break;
-
- std::unique_ptr<PollRequest> request(new PollRequest(this));
- request->nlc = m_hPollingConn;
- NLHR_PTR response(DoSend(request.get()));
- if (m_isTerminated || m_szId == nullptr)
- break;
-
- if (response == nullptr || response->resultCode != 200) {
- m_hPollingConn = nullptr;
- continue;
- }
-
- m_hPollingConn = response->nlc;
- if (!response->body.IsEmpty())
- ParsePollData(response->body);
- }
-
- if (!m_isTerminated) {
- debugLogA(__FUNCTION__ ": unexpected termination; switching protocol to offline");
- SetStatus(ID_STATUS_OFFLINE);
- }
-
- m_hPollingConn = nullptr;
- m_hPollingThread = nullptr;
- debugLogA(__FUNCTION__ ": leaving");
-}
-
void CTeamsProto::ParsePollData(const char *szData)
{
debugLogA(__FUNCTION__);
@@ -171,6 +135,3 @@ void CTeamsProto::ProcessUserPresence(const JSONNode &node)
}
}
}
-
-void CTeamsProto::ProcessConversationUpdate(const JSONNode &) {}
-void CTeamsProto::ProcessThreadUpdate(const JSONNode &) {}