Update discord activity when rehosting
This commit is contained in:
parent
7d80938901
commit
cd20ef041e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue