diff options
Diffstat (limited to 'protocols/VKontakte/src/vk_messages.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_messages.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp index 657c56471b..a8970be976 100644 --- a/protocols/VKontakte/src/vk_messages.cpp +++ b/protocols/VKontakte/src/vk_messages.cpp @@ -126,6 +126,13 @@ void CVkProto::OnSendMessage(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq) int CVkProto::OnDbEventRead(WPARAM hContact, LPARAM)
{
debugLogA("CVkProto::OnDbEventRead");
+ if (!hContact)
+ return 0;
+
+ CMString szProto(ptrA(db_get_sa(hContact, "Protocol", "p")));
+ if (szProto.IsEmpty() || szProto != m_szModuleName)
+ return 0;
+
if (m_iMarkMessageReadOn == markOnRead)
MarkMessagesRead(hContact);
return 0;
|