summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_history.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-06-27 15:12:48 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-06-27 15:12:56 +0300
commitd73824121408b3386f990246c9e06682b711492a (patch)
treec8ece5ddbbfb1aaad18b7de9c5e6502981e35b7a /protocols/Teams/src/teams_history.cpp
parentcb1562d3108207668ba3bb85e669f97bcaf23f96 (diff)
Teams: chat members processing
Diffstat (limited to 'protocols/Teams/src/teams_history.cpp')
-rw-r--r--protocols/Teams/src/teams_history.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/Teams/src/teams_history.cpp b/protocols/Teams/src/teams_history.cpp
index 825e807e92..4630b33aa3 100644
--- a/protocols/Teams/src/teams_history.cpp
+++ b/protocols/Teams/src/teams_history.cpp
@@ -55,8 +55,9 @@ void CTeamsProto::OnSyncConversations(MHttpResponse *response, AsyncHttpRequest
szChatType = szSkypename.Mid(idx + 1);
if (szType == "Chat" || szChatType == "thread.skype") {
- // if (!props["lastleaveat"])
- StartChatRoom(it["id"].as_mstring(), props["topic"].as_mstring(), props["version"].as_string().c_str());
+ auto *si = StartChatRoom(it["id"].as_mstring(), props["topic"].as_mstring(), props["version"].as_string().c_str());
+ for (auto &cc : props["members"])
+ AddChatContact(si, cc.as_mstring(), L"Admin");
}
else if (szType == "OneToOneChat") {
hContact = FindContact(it["properties"]["addedBy"].as_string().c_str());