From c4a58bcf46c12aef3149aa97c26c7f1dd212afac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 17 Jan 2019 22:35:17 +0300 Subject: finallly fixes #1773 --- protocols/ICQ-WIM/src/proto.cpp | 2 +- protocols/ICQ-WIM/src/server.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/ICQ-WIM') diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index 86fb3257fb..e1f926c4ff 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -304,7 +304,7 @@ INT_PTR CIcqProto::GetCaps(int type, MCONTACT) return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_INVISIBLE; case PFLAGNUM_4: - nReturn = PF4_FORCEAUTH | PF4_SUPPORTIDLE | PF4_IMSENDOFFLINE | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID; + nReturn = PF4_FORCEAUTH | PF4_SUPPORTIDLE | PF4_IMSENDOFFLINE | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID | PF4_READNOTIFY; break; case PFLAG_UNIQUEIDTEXT: diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 2a2b4bb986..097f17fa4d 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -797,7 +797,7 @@ void CIcqProto::ProcessImState(const JSONNode &ev) CheckLastId(hContact, ev); if (g_bMessageState) { - MessageReadData data(it["ts"].as_int(), MRD_TYPE_MESSAGETIME); + MessageReadData data(time(0), MRD_TYPE_MESSAGETIME); CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&data); } } -- cgit v1.2.3