From f89dd4f3e859b912f216fd2a6126b8722fa9aade Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 21 Feb 2017 00:16:23 +0100 Subject: [PATCH] [Friends] Correctly clear presence data --- src/Components/Modules/Friends.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Friends.cpp b/src/Components/Modules/Friends.cpp index 0c17fae2..5e59e857 100644 --- a/src/Components/Modules/Friends.cpp +++ b/src/Components/Modules/Friends.cpp @@ -174,6 +174,7 @@ namespace Components addId(0); addId(10190); addId(480); + addId(Steam::Proxy::AppId); if (Steam::Proxy::SteamUtils) { @@ -646,8 +647,15 @@ namespace Components { if (Steam::Proxy::ClientFriends) { - Steam::Proxy::ClientFriends.invoke("ClearRichPresence", 0); - Steam::Proxy::ClientFriends.invoke("ClearRichPresence", Steam::Proxy::AppId); + for (auto id : Friends::GetAppIdList()) + { + Steam::Proxy::ClientFriends.invoke("ClearRichPresence", id); + } + } + + if(Steam::Proxy::SteamFriends) + { + Steam::Proxy::SteamFriends->ClearRichPresence(); } }