summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-02-06 20:30:18 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-02-06 20:30:18 +0300
commite56bbe53cd07402970fc9015a832566f85cd890b (patch)
treeff637cf110a53cfed992d715bd1531e155be249e /protocols/JabberG/src/jabber_thread.cpp
parent0a289dfb53afd6f0c70b980b730e2f411f84a1f4 (diff)
Jabber:
- MessageState support; - minor code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp8
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);