From a76f31eb06923058dedc293368e605a66cc71624 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Mon, 20 Apr 2015 08:06:57 +0000 Subject: SkypeWeb: Small fix git-svn-id: http://svn.miranda-ng.org/main/trunk@12955 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_messages.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_messages.cpp') 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=user name 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()); } } -- cgit v1.2.3