diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-04-27 22:05:15 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-04-27 22:05:15 +0000 |
commit | 02c0d283de8781f2826a7bc985ff005ed553d114 (patch) | |
tree | ba73cbcefa95c83488e15c5fd282c1281bb2ace2 /protocols/FacebookRM/src/avatars.cpp | |
parent | 0d8f920de902b30edeebf5ddf363c1f95a9a9ef5 (diff) |
Facebook: Use delays when downloading avatars and don't call CheckAvatarChange when adding contacts
This will hopefully help bigger friend lists and won't slow down login process so much.
git-svn-id: http://svn.miranda-ng.org/main/trunk@13211 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/avatars.cpp')
-rw-r--r-- | protocols/FacebookRM/src/avatars.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp index cd68b55c62..3f9dfa0994 100644 --- a/protocols/FacebookRM/src/avatars.cpp +++ b/protocols/FacebookRM/src/avatars.cpp @@ -155,11 +155,15 @@ INT_PTR FacebookProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam) break;
case AF_DELAYAFTERFAIL:
- res = 60 * 1000;
+ res = 10 * 60 * 1000;
break;
- case AF_ENABLED:
case AF_DONTNEEDDELAYS:
+ // We need delays because of larger friend lists
+ res = 0;
+ break;
+
+ case AF_ENABLED:
case AF_FETCHIFPROTONOTVISIBLE:
case AF_FETCHIFCONTACTOFFLINE:
res = 1;
|