From 2ec2fe72f5754f59363335f9d5578600022661a1 Mon Sep 17 00:00:00 2001 From: watcherhd Date: Thu, 26 Apr 2012 20:02:14 +0000 Subject: FacebookRM: version bump Version 0.0.8.1 ! Fixed getting notifications on login ! Fixed getting unread messages on login ! Getting unread messages on login with right timestamp ! Fixed getting newsfeeds ! Fixed related to deleting contacts from miranda/server + New newsfeed type option "Applications and Games" + Contacts now have MirVer "Facebook" (for Fingerpring plugin) + Getting attachements for unread messages on login ! Fixed avatars in Miranda 0.10.0#3 and newer (thanks borkra) ! Some small fixes (thanks borkra) x Doesn't work notification about friend requests git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@289 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- FacebookRM/avatars.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'FacebookRM/avatars.cpp') diff --git a/FacebookRM/avatars.cpp b/FacebookRM/avatars.cpp index c3648ba..bed3f0c 100644 --- a/FacebookRM/avatars.cpp +++ b/FacebookRM/avatars.cpp @@ -180,8 +180,14 @@ int FacebookProto::GetAvatarInfo(WPARAM wParam, LPARAM lParam) if (GetDbAvatarInfo(*AI, NULL)) { - if (_access(AI->filename, 0) || (wParam & GAIF_FORCE)) - { + if (!_access(AI->filename, 0)) + { + LOG("***** Giving AvatarInfo: %s", AI->filename); + return GAIR_SUCCESS; + } + + if (wParam & GAIF_FORCE) + { LOG("***** Starting avatar request thread for %s", AI->filename); ScopedLock s( avatar_lock_ ); @@ -192,12 +198,8 @@ int FacebookProto::GetAvatarInfo(WPARAM wParam, LPARAM lParam) if (is_empty) ForkThread(&FacebookProto::UpdateAvatarWorker, this, NULL); } - return GAIR_WAITFOR; } - - LOG("***** Giving AvatarInfo: %s", AI->filename); - return GAIR_SUCCESS; } return GAIR_NOAVATAR; } -- cgit v1.2.3