diff options
author | Erik Kundiman <erik@megapahit.org> | 2025-07-28 17:49:15 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2025-07-28 17:49:15 +0800 |
commit | dbb0336d4a4739759371f52ab305fa2bd9237f3b (patch) | |
tree | 727fbb45a5c4bf382ea1bca659c7958e84a7e763 | |
parent | 705cd43ae88b5d095e7953ef8ddf670f3bbc9e1a (diff) |
Call updateDiscordActivity too in Discord init
so when the user enables the integration after being logged in,
the init can show the name and location right away.
-rw-r--r-- | indra/newview/llappviewer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index bc97e5b852..caf56d5c79 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -5926,9 +5926,7 @@ void LLAppViewer::initDiscordSocial() gDiscordClient->SetStatusChangedCallback([](discordpp::Client::Status status, discordpp::Client::Error, int32_t) { if (status == discordpp::Client::Status::Ready) { - discordpp::Activity activity; - activity.SetType(discordpp::ActivityTypes::Playing); - gDiscordClient->UpdateRichPresence(activity, [](discordpp::ClientResult) {}); + updateDiscordActivity(); } }); if (gSavedSettings.getBOOL("EnableDiscord")) |