diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-06-14 19:52:56 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-06-14 19:52:56 +0300 |
| commit | 723fb1f1cc490e497247d8fa66a26d5a8a638d46 (patch) | |
| tree | 9e5e936d0c80dc51c318b6b2cda909c1f31eb24e | |
| parent | 4ffcd4dc2bbad6c323555156b39e3e407edf7ce9 (diff) | |
this crutch isn't needed anymore
| -rw-r--r-- | protocols/Teams/src/teams_messages.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/protocols/Teams/src/teams_messages.cpp b/protocols/Teams/src/teams_messages.cpp index 276776fb83..c2c4ad2473 100644 --- a/protocols/Teams/src/teams_messages.cpp +++ b/protocols/Teams/src/teams_messages.cpp @@ -36,16 +36,7 @@ void CTeamsProto::OnMessageSent(MHttpResponse *response, AsyncHttpRequest *pRequ auto &pRoot = reply.data(); if (pMessage) { - if (auto *si = Chat_Find(hContact)) { - GCEVENT gce = { si, GC_EVENT_MESSAGE }; - gce.dwFlags = GCEF_ADDTOLOG | GCEF_UTF8; - gce.pszUID.a = m_szOwnSkypeId; - gce.pszText.a = pMessage->szMessage; - gce.time = time(0); - gce.bIsMe = true; - Chat_Event(&gce); - } - else { + if (!Contact::IsGroupChat(hContact)) { pMessage->iTimestamp = _wtoi64(pRoot["OriginalArrivalTime"].as_mstring()); CMStringA szMsgId(FORMAT, "%lld", pMessage->hClientMessageId); |
