diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-29 22:27:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-29 22:27:24 +0300 |
commit | fa1f355c4f8a5aeef4b2e36b2214ddeb90264b6b (patch) | |
tree | edfa7950c60e6c6300912ef9288a0077ac4a85ca | |
parent | c53dda67ae4a614b836412af5eb763d56dc1f763 (diff) |
Discord: fix for updating user's avatar on the fly
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index e3ac110128..2046ae149d 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -466,7 +466,10 @@ void CDiscordProto::OnCommandPresence(const JSONNode &pRoot) if (!wszGame.IsEmpty()) setWString(pUser->hContact, "XStatusMsg", wszGame); else - delSetting(pUser->hContact, "XStatusMsg"); + delSetting(pUser->hContact, "XStatusMsg"); + + // check avatar + CheckAvatarChange(pUser->hContact, pRoot["user"]["avatar"].as_mstring()); } ///////////////////////////////////////////////////////////////////////////////////////// |