diff options
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 5b496b74c4..de86bef956 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -172,7 +172,6 @@ CDiscordUser* CDiscordProto::PrepareUser(const JSONNode &user) return g_myUser; int iDiscriminator = _wtoi(user["discriminator"].as_mstring()); - CMStringW avatar = user["avatar"].as_mstring(); CMStringW username = user["username"].as_mstring(); CDiscordUser *pUser = FindUser(id); @@ -210,10 +209,7 @@ CDiscordUser* CDiscordProto::PrepareUser(const JSONNode &user) pUser->hContact = hContact; } - if (avatar.IsEmpty()) - delSetting(pUser->hContact, DB_KEY_AVHASH); - else - setWString(pUser->hContact, DB_KEY_AVHASH, avatar); + CheckAvatarChange(pUser->hContact, user["avatar"].as_mstring()); return pUser; } |