summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-03-21 16:02:24 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-03-21 16:02:24 +0300
commit99fafb3f42335f683e708551f73438fd49edc35f (patch)
treee30a506fdf3cb2fbf3c9b7b4573e11cacecb9d1f
parent001e8651ace0919fc8d0a8815f69ae9b7297bf89 (diff)
fixes #4915 (TabSRMM: испортилась повторная отправка сообщений)
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index 71bd4aea31..037a1b1082 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -23,7 +23,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void CSkypeProto::OnMessageSent(MHttpResponse *response, AsyncHttpRequest *pRequest)
{
MCONTACT hContact = pRequest->hContact;
- HANDLE hMessage = (HANDLE)pRequest->pUserInfo;
+ if (Contact::IsGroupChat(hContact))
+ return;
if (response != nullptr) {
if (response->resultCode != 201) {
@@ -36,10 +37,10 @@ void CSkypeProto::OnMessageSent(MHttpResponse *response, AsyncHttpRequest *pRequ
strError = jErr.as_string();
}
- ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, hMessage, _A2T(strError.c_str()));
+ ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, pRequest->pUserInfo, _A2T(strError.c_str()));
}
}
- else ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, hMessage, (LPARAM)TranslateT("Network error!"));
+ else ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, pRequest->pUserInfo, (LPARAM)TranslateT("Network error!"));
}
// outcoming message flow