diff options
-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 |