From 75d49b8c135872953af2aa706916e5e2117efd64 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 19 Apr 2015 09:50:38 +0000 Subject: SkypeWeb: Small fix (it should be rewritten). git-svn-id: http://svn.miranda-ng.org/main/trunk@12931 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_chatrooms.cpp | 2 +- protocols/SkypeWeb/src/skype_history_sync.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocols/SkypeWeb/src/skype_chatrooms.cpp b/protocols/SkypeWeb/src/skype_chatrooms.cpp index 762283b415..51195b2522 100644 --- a/protocols/SkypeWeb/src/skype_chatrooms.cpp +++ b/protocols/SkypeWeb/src/skype_chatrooms.cpp @@ -328,7 +328,7 @@ void CSkypeProto::AddChatContact(const TCHAR *tchat_id, const char *id, const ch gce.ptszNick = tnick; gce.ptszUID = tid; gce.time = ::time(NULL); - gce.bIsMe = false;//!strcmp(id, facy.self_.user_id.c_str()); + gce.bIsMe = IsMe(id); if (gce.bIsMe) { gce.ptszStatus = TranslateT("Myself"); diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index 6c7d34ff16..a4b040eec6 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -98,10 +98,10 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) GCDEST gcd = { m_szModuleName, _A2T(chatname), GC_EVENT_MESSAGE }; GCEVENT gce = { sizeof(GCEVENT), &gcd }; gce.bIsMe = IsMe(ContactUrlToName(from)); - gce.ptszUID = _A2T(ContactUrlToName(from)); + gce.ptszUID = mir_a2t(ContactUrlToName(from)); gce.time = timestamp; - gce.ptszNick = _A2T(ContactUrlToName(from)); - gce.ptszText = _A2T(content); + gce.ptszNick = mir_a2t(ContactUrlToName(from)); + gce.ptszText = mir_a2t(content); gce.dwFlags = GCEF_NOTNOTIFY; CallServiceSync(MS_GC_EVENT, 0, (LPARAM)&gce); } -- cgit v1.2.3