From 6fd143b5c2f6e5d0c05657a9f7e8fe081a2447e2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 23 Oct 2013 19:51:17 +0000 Subject: VK: fix for outgoing message notification git-svn-id: http://svn.miranda-ng.org/main/trunk@6604 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_protosvc.h | 1 + protocols/VKontakte/src/vk_thread.cpp | 2 ++ src/modules/protocols/protocols.cpp | 2 ++ 3 files changed, 5 insertions(+) diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 808722b457..2ad9c9d7c7 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -721,6 +721,7 @@ typedef struct { #define PREF_UNICODE 2 #define PREF_RTL 4 // 0.5+ addition: support for right-to-left messages #define PREF_UTF 8 // message is in utf-8 (0.7.0+) +#define PREF_SENT 16 // message will be created with the DBEF_SENT flag #if defined(_UNICODE) #define PREF_TCHAR PREF_UNICODE diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp index d567558863..2d71e576c2 100644 --- a/protocols/VKontakte/src/vk_thread.cpp +++ b/protocols/VKontakte/src/vk_thread.cpp @@ -380,6 +380,8 @@ void CVkProto::OnReceiveMessages(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pRe recv.flags = PREF_TCHAR; if (isRead) recv.flags |= PREF_CREATEREAD; + if (isOut) + recv.flags |= PREF_SENT; recv.timestamp = datetime; recv.tszMessage = ptszBody; recv.lParam = isOut; diff --git a/src/modules/protocols/protocols.cpp b/src/modules/protocols/protocols.cpp index 4a61f457fe..bc401e4449 100644 --- a/src/modules/protocols/protocols.cpp +++ b/src/modules/protocols/protocols.cpp @@ -178,6 +178,8 @@ static INT_PTR Proto_RecvMessage(WPARAM, LPARAM lParam) dbei.flags |= DBEF_READ; if (pre->flags & PREF_UTF) dbei.flags |= DBEF_UTF; + if (pre->flags & PREF_SENT) + dbei.flags |= DBEF_SENT; return (INT_PTR)db_event_add(ccs->hContact, &dbei); } -- cgit v1.2.3