diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-20 08:06:57 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-04-20 08:06:57 +0000 |
commit | a76f31eb06923058dedc293368e605a66cc71624 (patch) | |
tree | 9d612990af61cb408720cd23a1e1efb34a8ab3d5 /protocols/SkypeWeb | |
parent | 4df7c33b50f90a2ec4079a08e818c207d9644d8c (diff) |
SkypeWeb: Small fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12955 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 30476a5d99..ed0520465e 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -264,7 +264,7 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node) //content=<partlist type="started" alt=""><part identity="username"><name>user name</name></part></partlist>
ptrA name;
- int iType, iDuration;
+ int iType = 3, iDuration = 0;
HXML xml = xi.parseString(ptrT(mir_a2t(content)), 0, _T("partlist"));
if (xml != NULL)
{
@@ -285,7 +285,11 @@ void CSkypeProto::OnPrivateMessageEvent(JSONNODE *node) text.Append(Translate("Call started"));
else if (iType == 0)
text.AppendFormat("%s\n%s: %d", Translate("Call ended"), Translate("Duration"), iDuration != NULL ? iDuration : 0);
- OnReceiveMessage(clientMsgId, conversationLink, timestamp, text.GetBuffer());
+
+ if (IsMe(from))
+ AddMessageToDb(hContact, timestamp, DBEF_UTF | DBEF_SENT, clientMsgId, text.GetBuffer());
+ else
+ OnReceiveMessage(clientMsgId, conversationLink, timestamp, text.GetBuffer());
}
}
|