diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-09 17:19:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-09 17:19:12 +0300 |
commit | 2aff16cfed601355f871862d7143c43f3528243c (patch) | |
tree | 4fe7b7d46a3ae288f768e233bd77bf05c88b7a9a /protocols/Discord/src/server.cpp | |
parent | ee2dac14cc7ef216f42ff46794eea5d37ebc6871 (diff) |
separate method for avatars retrieval
Diffstat (limited to 'protocols/Discord/src/server.cpp')
-rw-r--r-- | protocols/Discord/src/server.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Discord/src/server.cpp b/protocols/Discord/src/server.cpp index b0d836e889..a8a44b500a 100644 --- a/protocols/Discord/src/server.cpp +++ b/protocols/Discord/src/server.cpp @@ -125,10 +125,8 @@ void CDiscordProto::OnReceiveUserInfo(NETLIBHTTPREQUEST *pReply, AsyncHttpReques if (hContact == NULL) { // if avatar's hash changed, we need to request a new one - if (mir_wstrcmp(wszNewAvatar, wszOldAvatar)) { - PROTO_AVATAR_INFORMATION ai = {}; - GetAvatarInfo(GAIF_FORCE, (LPARAM)&ai); - } + if (mir_wstrcmp(wszNewAvatar, wszOldAvatar)) + RetrieveAvatar(NULL); OnLoggedIn(); } |