summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/dispatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r--protocols/Discord/src/dispatch.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index 299074adde..7b5f2587e1 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -419,12 +419,7 @@ void CDiscordProto::OnCommandUserUpdate(const JSONNode &pRoot)
else hContact = 0;
// force rereading avatar
- ptrW wszOldHash(getWStringA(hContact, DB_KEY_AVHASH));
- CMStringW wszNewHash(pRoot["avatar"].as_mstring());
- if (mir_wstrcmp(wszOldHash, wszNewHash)) {
- setWString(hContact, DB_KEY_AVHASH, wszNewHash);
- RetrieveAvatar(hContact);
- }
+ CheckAvatarChange(hContact, pRoot["avatar"].as_mstring());
}
void CDiscordProto::OnCommandUserSettingsUpdate(const JSONNode &pRoot)