summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_files.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_files.cpp
parent0f361039b66b42b704b6b3601a1c3a88e317cc7d (diff)
Teams: minus polling
Diffstat (limited to 'protocols/Teams/src/teams_files.cpp')
-rw-r--r--protocols/Teams/src/teams_files.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/protocols/Teams/src/teams_files.cpp b/protocols/Teams/src/teams_files.cpp
index a6e7d07087..4efb89a662 100644
--- a/protocols/Teams/src/teams_files.cpp
+++ b/protocols/Teams/src/teams_files.cpp
@@ -1,3 +1,20 @@
+/*
+Copyright (c) 2025 Miranda NG team (https://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
#include "stdafx.h"
////////////////////////////////////////////////////////////////////////////////////////
@@ -48,7 +65,7 @@ void CTeamsProto::ReceiveFileThread(void *param)
nlhr.AddHeader("Cookie", szCookie);
NLHR_PTR response(Netlib_HttpTransaction(m_hNetlibUser, &nlhr));
if (response) {
- SkypeReply reply(response);
+ TeamsReply reply(response);
if (!reply.error()) {
auto &root = reply.data();
if (root["content_state"].as_string() == "ready")