diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-31 11:48:44 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-31 11:48:44 +0300 |
commit | b424db2d01e39a59447f4ed54e98da3d155c6fab (patch) | |
tree | 3f12e8f8ae9974de0a9d5ac9893928dab34d6620 /protocols/Discord | |
parent | de62bd9aed937611d196639eb9f1c52487557d16 (diff) |
Discord: fix for eternal avatar reload
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/avatars.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Discord/src/avatars.cpp b/protocols/Discord/src/avatars.cpp index 87905e17e1..73f645e34b 100644 --- a/protocols/Discord/src/avatars.cpp +++ b/protocols/Discord/src/avatars.cpp @@ -202,6 +202,9 @@ INT_PTR CDiscordProto::SetMyAvatar(WPARAM, LPARAM lParam) void CDiscordProto::CheckAvatarChange(MCONTACT hContact, const CMStringW &wszNewHash) { + if (wszNewHash.IsEmpty()) + return; + ptrW wszOldAvatar(getWStringA(hContact, DB_KEY_AVHASH)); // if avatar's hash changed, we need to request a new one |