summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-23 19:51:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-23 19:51:17 +0000
commit6fd143b5c2f6e5d0c05657a9f7e8fe081a2447e2 (patch)
treeb7ac7068df1c3042700c5fe38bd507b74a71837c
parent7a1aca929a8b8a12d87d5c8c086cd7b82dcde5e5 (diff)
VK: fix for outgoing message notification
git-svn-id: http://svn.miranda-ng.org/main/trunk@6604 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--include/m_protosvc.h1
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp2
-rw-r--r--src/modules/protocols/protocols.cpp2
3 files changed, 5 insertions, 0 deletions
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);
}