diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-27 13:48:14 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-27 13:48:14 +0000 |
commit | 346d6c8bba413fa13f31f8acfd808c23a4bbccae (patch) | |
tree | 44d5116e7330e5f87579d4826202557d0dc4851e /protocols/SkypeWeb/src/skype_history_sync.cpp | |
parent | 0d289371985e2d099b0de6b8150dbb74fb416e43 (diff) |
SkypeWeb: More fixes & optimizations
git-svn-id: http://svn.miranda-ng.org/main/trunk@14738 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_history_sync.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index 1016bd3e1c..06fe888e0d 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -51,11 +51,11 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) std::string conversationLink = message["conversationLink"].as_string();
int emoteOffset = message["skypeemoteoffset"].as_int();
time_t timestamp = IsoToUnixTime(message["composetime"].as_string().c_str());
- CMStringA skypename(ContactUrlToName(from.c_str()));
+ CMStringA skypename(UrlToSkypename(from.c_str()));
bool isEdited = message["skypeeditedid"];
- MCONTACT hContact = FindContact(ContactUrlToName(conversationLink.c_str()));
+ MCONTACT hContact = FindContact(UrlToSkypename(conversationLink.c_str()));
if (timestamp > db_get_dw(hContact, m_szModuleName, "LastMsgTime", 0))
db_set_dw(hContact, m_szModuleName, "LastMsgTime", (DWORD)timestamp);
@@ -100,7 +100,7 @@ void CSkypeProto::OnGetServerHistory(const NETLIBHTTPREQUEST *response) }
else if (conversationLink.find("/19:") != -1)
{
- CMStringA chatname(ChatUrlToName(conversationLink.c_str()));
+ CMStringA chatname(UrlToSkypename(conversationLink.c_str()));
if (!mir_strcmpi(messageType.c_str(), "Text") || !mir_strcmpi(messageType.c_str(), "RichText"))
AddMessageToChat(_A2T(chatname), _A2T(skypename), content.c_str(), emoteOffset != NULL, emoteOffset, timestamp, true);
}
@@ -143,7 +143,7 @@ void CSkypeProto::OnSyncHistory(const NETLIBHTTPREQUEST *response) if (conversationLink.find("/8:") != -1)
{
- CMStringA skypename(ContactUrlToName(conversationLink.c_str()));
+ CMStringA skypename(UrlToSkypename(conversationLink.c_str()));
MCONTACT hContact = FindContact(skypename);
if (hContact == NULL)
continue;
|