From f0173fd8343e7f1469b40ea8372f6b951846f63b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 29 Feb 2020 21:32:45 +0300 Subject: MessageState: rewritten from scratch to work --- plugins/ExternalAPI/m_messagestate.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'plugins/ExternalAPI') diff --git a/plugins/ExternalAPI/m_messagestate.h b/plugins/ExternalAPI/m_messagestate.h index b47ea166e9..fa908b06f9 100644 --- a/plugins/ExternalAPI/m_messagestate.h +++ b/plugins/ExternalAPI/m_messagestate.h @@ -2,22 +2,15 @@ enum MessageReadData_TimeType { - MRD_TYPE_READTIME, - MRD_TYPE_MESSAGETIME -}; - -struct MessageReadData -{ - DWORD dw_lastTime; - int iTimeType; - MessageReadData(DWORD lastTime, int type) : dw_lastTime(lastTime), iTimeType(type) {} + MRD_TYPE_DELIVERED = 1, + MRD_TYPE_READ = 2 }; /* * Update messagestate read time * WPARAM = hContact -* LPARAM = (LPARAM)(MessageReadData*) +* LPARAM = MessageReadData_TimeType * returns 0 */ -#define MS_MESSAGESTATE_UPDATE "MessageState/Update" \ No newline at end of file +#define MS_MESSAGESTATE_UPDATE "MessageState/Update" -- cgit v1.2.3