From 54d0c03d46d468e26535de4e4a0a8d4ac49bd034 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 9 Apr 2023 17:46:53 -0700 Subject: [PATCH] Update discord activity when rehosting --- src/pc/network/network.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/pc/network/network.c b/src/pc/network/network.c index 8e705f17..ea5eedf5 100644 --- a/src/pc/network/network.c +++ b/src/pc/network/network.c @@ -155,6 +155,12 @@ bool network_init(enum NetworkType inNetworkType) { gChangeLevelTransition = gLevelValues.entryLevel; } +#ifdef DISCORD_SDK + if (gNetworkSystem == &gNetworkSystemDiscord) { + discord_activity_update(true); + } +#endif + djui_chat_box_create(); } @@ -468,11 +474,6 @@ static void network_rehost_update(void) { gDiscordReconnecting = true; djui_panel_do_host(); -#ifdef DISCORD_SDK - if (sNetworkReconnectType == NS_DISCORD) { - discord_activity_update(true); - } -#endif gDiscordReconnecting = false; }