Update discord activity when rehosting

This commit is contained in:
MysterD 2023-04-09 17:46:53 -07:00
parent 52eba1990b
commit 54d0c03d46
1 changed files with 6 additions and 5 deletions

View File

@ -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;
}