From b9eed106e74a7725f57b8175bc580a1520e1fe24 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Jan 2014 20:29:14 +0000 Subject: patch for avatars reading optimization (by wsx22) git-svn-id: http://svn.miranda-ng.org/main/trunk@7843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_svc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/Tlen/src') diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp index 7ee18ce37c..4fcd953033 100644 --- a/protocols/Tlen/src/tlen_svc.cpp +++ b/protocols/Tlen/src/tlen_svc.cpp @@ -688,7 +688,7 @@ INT_PTR TlenProtocol::GetAvatarInfo(WPARAM wParam, LPARAM lParam) if ((avatarHash == NULL || avatarHash[0] == '\0') && !downloadingAvatar) return GAIR_NOAVATAR; - + if (avatarHash != NULL && !downloadingAvatar) { TlenGetAvatarFileName(this, item, AI->filename, sizeof(AI->filename)); AI->format = ( AI->hContact == NULL ) ? threadData->avatarFormat : item->avatarFormat; @@ -1156,8 +1156,8 @@ INT_PTR TlenProtocol::GetAvatarCaps(WPARAM wParam, LPARAM lParam) return 1; case AF_MAXFILESIZE: return 10 * 1024; - case AF_DELAYAFTERFAIL: - return 0; + case AF_FETCHIFCONTACTOFFLINE: + return 1; } return 0; } -- cgit v1.2.3