diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-16 12:09:28 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-16 12:09:28 +0000 |
commit | 8677ac8db6aa7528fdb84bf3cd8a996a3f45e254 (patch) | |
tree | e65efa5d4970ec2b401488fd92482ecb4a199b64 /protocols/MSN/src/msn_contact.cpp | |
parent | e9bd09e71e1d12803e0eec86a8e0a039c9d4e755 (diff) |
- Cache authContactToken after refresh in MSN_GetPassportAuth as this token expires already after 8 hours whereas other tokens like login persist 24h
- Fixed groupchat invite
- Fork Contact list Refresh on connect into background thread so that login is faster.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13615 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MSN/src/msn_contact.cpp')
-rw-r--r-- | protocols/MSN/src/msn_contact.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/MSN/src/msn_contact.cpp b/protocols/MSN/src/msn_contact.cpp index e2ce150fca..9d2371ce3a 100644 --- a/protocols/MSN/src/msn_contact.cpp +++ b/protocols/MSN/src/msn_contact.cpp @@ -106,6 +106,7 @@ void CMsnProto::MSN_SetContactDb(MCONTACT hContact, const char *szEmail) void CMsnProto::AddDelUserContList(const char* email, const int list, const int netId, const bool del)
{
+/*
char buf[512];
size_t sz;
@@ -125,6 +126,7 @@ void CMsnProto::AddDelUserContList(const char* email, const int list, const int }
msnNsThread->sendPacket(del ? "RML" : "ADL", "%d\r\n%s", sz, buf);
}
+*/
if (del)
Lists_Remove(list, email);
@@ -252,21 +254,27 @@ bool CMsnProto::MSN_RefreshContactList(void) if (GetMyNetID() != NETID_SKYPE)
{
+ // Get your own profile info
if (!MSN_SharingFindMembership()) return false;
if (m_iDesiredStatus == ID_STATUS_OFFLINE) return false;
+ // Get "classic" MSN contacts
if (!MSN_ABFind("ABFindContactsPaged", NULL)) return false;
- MSN_ABRefreshClist();
+
+ // Get Skype contacts on linked profiles
+ if (!MSN_ABRefreshClist()) return false;
if (m_iDesiredStatus == ID_STATUS_OFFLINE) return false;
+ // Remove contacts not on server etc.
MSN_CleanupLists();
if (m_iDesiredStatus == ID_STATUS_OFFLINE) return false;
msnLoggedIn = true;
+ // Populate Contact list on MSN network to get status updates of contacts
MSN_CreateContList();
//MSN_StoreGetProfile();
}
|