summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Teams/src/teams_server.cpp1
-rw-r--r--protocols/Teams/src/teams_trouter.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Teams/src/teams_server.cpp b/protocols/Teams/src/teams_server.cpp
index ee55e90ce2..36bf297ac5 100644
--- a/protocols/Teams/src/teams_server.cpp
+++ b/protocols/Teams/src/teams_server.cpp
@@ -27,7 +27,6 @@ void CTeamsProto::OnCapabilitiesSended(MHttpResponse *response, AsyncHttpRequest
return;
}
- CreateContactSubscription();
ReceiveAvatar(0);
RefreshContactsInfo();
RefreshConversations();
diff --git a/protocols/Teams/src/teams_trouter.cpp b/protocols/Teams/src/teams_trouter.cpp
index 7e9240dc7f..7b8c93aaec 100644
--- a/protocols/Teams/src/teams_trouter.cpp
+++ b/protocols/Teams/src/teams_trouter.cpp
@@ -48,6 +48,8 @@ void CTeamsProto::OnTrouterInfo(MHttpResponse *response, AsyncHttpRequest *)
CMStringA szUrl = root["socketio"].as_mstring();
szUrl += "socket.io/1/";
+ CreateContactSubscription();
+
auto *pReq = new AsyncHttpRequest(REQUEST_GET, HOST_OTHER, szUrl, &CTeamsProto::OnTrouterSession);
pReq << CHAR_PARAM("v", "v4");