summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-08-29 22:27:24 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-08-29 22:27:24 +0300
commitfa1f355c4f8a5aeef4b2e36b2214ddeb90264b6b (patch)
treeedfa7950c60e6c6300912ef9288a0077ac4a85ca
parentc53dda67ae4a614b836412af5eb763d56dc1f763 (diff)
Discord: fix for updating user's avatar on the fly
-rw-r--r--protocols/Discord/src/dispatch.cpp5
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());
}
/////////////////////////////////////////////////////////////////////////////////////////