diff options
-rw-r--r-- | include/m_protosvc.h | 1 | ||||
-rw-r--r-- | protocols/VKontakte/src/vk_thread.cpp | 2 | ||||
-rw-r--r-- | src/modules/protocols/protocols.cpp | 2 |
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);
}
|