diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-06-13 11:52:06 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-06-13 11:52:06 +0300 |
| commit | a653b4ad9217a45aad65a7eec71234e652acd446 (patch) | |
| tree | 4d3df40b4a9a8e477f2aafbf8470c51cea7c4b4c /protocols/Teams/src/teams_login.cpp | |
| parent | 1392edb8f6a78838fcbff17f925ad077f4ede38d (diff) | |
fixes #5046 (MsTeams: Will not login)
Diffstat (limited to 'protocols/Teams/src/teams_login.cpp')
| -rw-r--r-- | protocols/Teams/src/teams_login.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/protocols/Teams/src/teams_login.cpp b/protocols/Teams/src/teams_login.cpp index 4d494276b2..b676af3641 100644 --- a/protocols/Teams/src/teams_login.cpp +++ b/protocols/Teams/src/teams_login.cpp @@ -41,7 +41,15 @@ void CTeamsProto::LoggedIn() ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus); SetServerStatus(m_iStatus); - SendPresence(); + + ReceiveAvatar(0); + RefreshContactsInfo(); + RefreshConversations(); + + GetProfileInfo(0); + + PushRequest(new AsyncHttpRequest(REQUEST_POST, HOST_TEAMS_API, "/imageauth/cookie", &CTeamsProto::OnReceiveApiCookie)); + StartTrouter(); } @@ -156,9 +164,11 @@ void CTeamsProto::OnReceiveSkypeToken(MHttpResponse *response, AsyncHttpRequest auto &token = reply.data()["skypeToken"]; m_szSkypeToken = token["skypetoken"].as_mstring(); - setWString(DBKEY_ID, token["skypeid"].as_mstring()); - SendCreateEndpoint(); + m_szOwnSkypeId = token["skypeid"].as_mstring(); + setString(DBKEY_ID, m_szOwnSkypeId); + + LoggedIn(); } void CTeamsProto::OnRefreshAccessToken(MHttpResponse *response, AsyncHttpRequest *) |
