summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-17 18:08:16 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-17 18:08:16 +0300
commit0fb236bd52f82dc312e8ec315c7837714e73226c (patch)
tree346a4d4e8d56f33c4c7abb9b592b8c3b044f9d83
parent10e4d233d850c9fa7237174490e4e6d9bfd8e764 (diff)
fixes #4678 (Skypeweb: сообщения отправляются, но затем приходит ошибка отправки)
-rw-r--r--protocols/SkypeWeb/src/skype_messages.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp
index ab57bf7b93..126700afda 100644
--- a/protocols/SkypeWeb/src/skype_messages.cpp
+++ b/protocols/SkypeWeb/src/skype_messages.cpp
@@ -114,8 +114,9 @@ LBL_Deleted:
}
if (strMessageType == "Text" || strMessageType == "RichText") {
- if ((dbei.flags & DBEF_SENT) && dbei.szId) {
- HANDLE hMessage = (HANDLE)atoi(dbei.szId);
+ std::string szOwnMessageId = node["clientmessageid"].as_string();
+ if ((dbei.flags & DBEF_SENT) && !szOwnMessageId.empty()) {
+ HANDLE hMessage = (HANDLE)atoi(szOwnMessageId.c_str());
if (m_OutMessages.getIndex(hMessage) != -1) {
ProtoBroadcastAck(dbei.hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, hMessage, (LPARAM)dbei.szId);