From fa1f355c4f8a5aeef4b2e36b2214ddeb90264b6b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 29 Aug 2017 22:27:24 +0300 Subject: Discord: fix for updating user's avatar on the fly --- protocols/Discord/src/dispatch.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/Discord/src') 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()); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3