diff options
author | George Hazan <george.hazan@gmail.com> | 2013-05-10 19:13:36 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-05-10 19:13:36 +0000 |
commit | 326fdfc6425dd89b32e94c111d68a0384b8765a3 (patch) | |
tree | d99a73701f1be7c47e9040cb96d46cc600a0027d /protocols/Skype/src/skype_database.cpp | |
parent | 97fe0e28cae9ab3d9131dc13103027cb41aa21c8 (diff) |
hangup fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_database.cpp')
-rw-r--r-- | protocols/Skype/src/skype_database.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/protocols/Skype/src/skype_database.cpp b/protocols/Skype/src/skype_database.cpp index 67853c73b3..2aca8bd1f3 100644 --- a/protocols/Skype/src/skype_database.cpp +++ b/protocols/Skype/src/skype_database.cpp @@ -84,21 +84,7 @@ void CSkypeProto::RaiseAuthRequestEvent(DWORD timestamp, CContact::Ref contact) this->AddDBEvent(hContact, EVENTTYPE_AUTHREQUEST, time(NULL), PREF_UTF, cbBlob, pBlob);
}
-void CSkypeProto::RaiseMessageReceivedEvent(HANDLE hContact, DWORD timestamp, SEBinary &guid, const char *message, bool isUnreaded)
-{
- if ( !isUnreaded)
- if (this->IsMessageInDB(hContact, timestamp, guid))
- return;
-
- PROTORECVEVENT recv;
- recv.flags = PREF_UTF;
- recv.lParam = (LPARAM)&guid;
- recv.timestamp = timestamp;
- recv.szMessage = ::mir_strdup(message);
- ::ProtoChainRecvMsg(hContact, &recv);
-}
-
-void CSkypeProto::RaiseMessageSentEvent(HANDLE hContact, DWORD timestamp, SEBinary &guid, const char *message, bool isUnreaded)
+void CSkypeProto::RaiseMessageSentEvent(HANDLE hContact, DWORD timestamp, SEBinary &guid, const char *message, bool isUnread)
{
if (this->IsMessageInDB(hContact, timestamp, guid, DBEF_SENT))
return;
@@ -113,7 +99,7 @@ void CSkypeProto::RaiseMessageSentEvent(HANDLE hContact, DWORD timestamp, SEBina ::memcpy((char *)&msg[msgLen], guid.data(), guidLen);
DWORD flags = DBEF_UTF | DBEF_SENT;
- if ( !isUnreaded)
+ if ( !isUnread)
flags |= DBEF_READ;
this->AddDBEvent(
|