diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-06 20:30:18 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-06 20:30:18 +0300 |
commit | e56bbe53cd07402970fc9015a832566f85cd890b (patch) | |
tree | ff637cf110a53cfed992d715bd1531e155be249e /protocols/JabberG/src/jabber_thread.cpp | |
parent | 0a289dfb53afd6f0c70b980b730e2f411f84a1f4 (diff) |
Jabber:
- MessageState support;
- minor code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 82a56adbbf..18cd3d03fb 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1185,8 +1185,14 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info) int nPacketId = JabberGetPacketID(n);
if (nPacketId == -1)
nPacketId = JabberGetPacketID(node);
- if (nPacketId != -1)
+ if (nPacketId != -1) {
ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_SUCCESS, (HANDLE)nPacketId, 0);
+
+ if (g_plugin.bMessageState) {
+ MessageReadData readData(time(0), MRD_TYPE_READTIME);
+ CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&readData);
+ }
+ }
}
JabberReadXep203delay(node, msgTime);
|