diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-02 11:47:10 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-02 11:47:10 +0000 |
commit | 55a33c37e737d801a28bf7e75f828090ef67b224 (patch) | |
tree | 16a34d08487669d6415314e86b6004ff35cffe9b /protocols/SkypeWeb/src/skype_messages.cpp | |
parent | 087f1bdd07c3635244940a7aa51ac3732525b5d8 (diff) |
SkypeWeb: fixed messageid problems (test it!)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15147 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_messages.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index ecf39013af..3b49886705 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -39,7 +39,7 @@ int CSkypeProto::OnReceiveMessage(MCONTACT hContact, const char *szContent, cons struct SendMessageParam
{
MCONTACT hContact;
- ULONGLONG hMessage;
+ LONGLONG hMessage;
};
// outcoming message flow
@@ -53,7 +53,7 @@ int CSkypeProto::OnSendMessage(MCONTACT hContact, int, const char *szMessage) SendMessageParam *param = new SendMessageParam();
param->hContact = hContact;
- param->hMessage = GenerateMessageId();
+ param->hMessage = time(NULL);
ptrA username(getStringA(hContact, "Skypename"));
@@ -186,7 +186,8 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node) {
if (IsMe(szFromSkypename))
{
- HANDLE hMessage = (HANDLE)std::stoull(szMessageId.GetString());
+ szMessageId.Truncate(szMessageId.GetLength() - 3);
+ HANDLE hMessage = (HANDLE)(std::stoull(szMessageId.GetString()));
if (m_OutMessages.getIndex(hMessage) != -1)
{
auto it = m_mpOutMessages.find(hMessage);
|