From 326fdfc6425dd89b32e94c111d68a0384b8765a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 10 May 2013 19:13:36 +0000 Subject: hangup fix git-svn-id: http://svn.miranda-ng.org/main/trunk@4626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_database.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'protocols/Skype/src/skype_database.cpp') 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( -- cgit v1.2.3