diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-29 21:36:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-29 21:36:56 +0300 |
commit | a31095992ac06db3900aad856d7ace3786df7cdd (patch) | |
tree | c88518d977084c496061301124c3d848d1866477 /protocols | |
parent | f0173fd8343e7f1469b40ea8372f6b951846f63b (diff) |
ICQ-WIM: correct support for delivered messages
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/poll.cpp | 3 | ||||
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/poll.cpp b/protocols/ICQ-WIM/src/poll.cpp index 2fa3e7571c..f3fb53db7f 100644 --- a/protocols/ICQ-WIM/src/poll.cpp +++ b/protocols/ICQ-WIM/src/poll.cpp @@ -217,7 +217,8 @@ void CIcqProto::ProcessHistData(const JSONNode &ev) if (srvRemoteRead > lastRemoteRead) { setId(hContact, DB_KEY_REMOTEREAD, srvRemoteRead); - CallService(MS_MESSAGESTATE_UPDATE, hContact, MRD_TYPE_READ); + if (g_bMessageState) + CallService(MS_MESSAGESTATE_UPDATE, hContact, MRD_TYPE_READ); } } } diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 5b7db80bb4..e88f38e96e 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -1046,6 +1046,9 @@ void CIcqProto::OnSendMessage(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq) m_arOwnIds.remove(ownMsg); } + if (g_bMessageState) + CallService(MS_MESSAGESTATE_UPDATE, ownMsg->m_hContact, MRD_TYPE_DELIVERED); + const JSONNode &data = root.data(); CMStringA reqId(root.requestId()); CMStringA msgId(data["histMsgId"].as_mstring()); |