summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Teams/src/teams_proto.cpp')
-rw-r--r--protocols/Teams/src/teams_proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Teams/src/teams_proto.cpp b/protocols/Teams/src/teams_proto.cpp
index a9462bec8d..dfa09503e0 100644
--- a/protocols/Teams/src/teams_proto.cpp
+++ b/protocols/Teams/src/teams_proto.cpp
@@ -89,7 +89,7 @@ void CTeamsProto::OnEventDeleted(MCONTACT hContact, MEVENT hDbEvent, int flags)
DB::EventInfo dbei(hDbEvent, false);
if (dbei.szId) {
- auto *pReq = new AsyncHttpRequest(REQUEST_DELETE, HOST_DEFAULT, "/users/ME/conversations/" + mir_urlEncode(getId(hContact)) + "/messages/" + dbei.szId);
+ auto *pReq = new AsyncHttpRequest(REQUEST_DELETE, HOST_CHATS, "/users/ME/conversations/" + mir_urlEncode(getId(hContact)) + "/messages/" + dbei.szId);
pReq->AddAuthentication(this);
pReq->AddHeader("Origin", "https://web.skype.com");
pReq->AddHeader("Referer", "https://web.skype.com/");
@@ -260,7 +260,7 @@ int CTeamsProto::UserIsTyping(MCONTACT hContact, int iState)
node << INT64_PARAM("clientmessageid", getRandomId()) << CHAR_PARAM("contenttype", "Application/Message") << CHAR_PARAM("content", "")
<< CHAR_PARAM("messagetype", (iState == PROTOTYPE_SELFTYPING_ON) ? "Control/Typing" : "Control/ClearTyping");
- auto *pReq = new AsyncHttpRequest(REQUEST_POST, HOST_DEFAULT, "/users/ME/conversations/" + mir_urlEncode(getId(hContact)) + "/messages");
+ auto *pReq = new AsyncHttpRequest(REQUEST_POST, HOST_CHATS, "/users/ME/conversations/" + mir_urlEncode(getId(hContact)) + "/messages");
pReq->m_szParam = node.write().c_str();
PushRequest(pReq);
return 0;