diff options
author | George Hazan <ghazan@miranda.im> | 2017-02-02 16:36:43 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-02-02 16:36:43 +0300 |
commit | e1d7991a9095a848f0be2dd4a2677697b2e500da (patch) | |
tree | ddecdab8142634c6e2147adf0d8d9da203db7384 /protocols/Discord/src/dispatch.cpp | |
parent | fa650aaf5029cc11edf1540996e596a88acabbc1 (diff) |
Discord: avatar change detector moved to the separate function
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 7 |
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) |