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_messages.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_messages.cpp')
-rw-r--r-- | protocols/Skype/src/skype_messages.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/protocols/Skype/src/skype_messages.cpp b/protocols/Skype/src/skype_messages.cpp index 64b29939e1..ced5ab8647 100644 --- a/protocols/Skype/src/skype_messages.cpp +++ b/protocols/Skype/src/skype_messages.cpp @@ -59,13 +59,18 @@ void CSkypeProto::OnMessageReceived(CConversation::Ref &conversation, CMessage:: SEBinary guid;
message->GetPropGuid(guid);
-
- this->RaiseMessageReceivedEvent(
- hContact,
- timestamp,
- guid,
- text,
- status == CMessage::UNCONSUMED_NORMAL);
+ ReadMessageParam param = { guid, messageType };
+
+ if (status != CMessage::UNCONSUMED_NORMAL)
+ if (this->IsMessageInDB(hContact, timestamp, guid))
+ return;
+
+ PROTORECVEVENT recv;
+ recv.flags = PREF_UTF;
+ recv.lParam = (LPARAM)¶m;
+ recv.timestamp = timestamp;
+ recv.szMessage = ::mir_strdup(text);
+ ::ProtoChainRecvMsg(hContact, &recv);
}
/////////////////////////////////////////////////////////////////////////////////////////
|