`]);
for (const line of lines) this.receiveLine(BattleTextParser.parseLine(line));
this.receiveLine(BattleTextParser.parseLine(reconnectMessage));
}
@@ -307,7 +315,7 @@ export class ChatRoom extends PSRoom {
const lastMessageDate = lastMessageDates[PS.server.id][this.id] || 0;
// because the time offset to the server can vary slightly, subtract it to not have it affect comparisons between dates
const time = serverTime - (this.timeOffset || 0);
- if (PS.isVisible(this)) {
+ if (PS.isVisiblePanel(this)) {
this.lastMessageTime = null;
lastMessageDates[PS.server.id][this.id] = time;
PS.prefs.set('logtimes', lastMessageDates);
diff --git a/play.pokemonshowdown.com/src/panel-mainmenu.tsx b/play.pokemonshowdown.com/src/panel-mainmenu.tsx
index 5bbe8e6b2..624fab6d1 100644
--- a/play.pokemonshowdown.com/src/panel-mainmenu.tsx
+++ b/play.pokemonshowdown.com/src/panel-mainmenu.tsx
@@ -458,6 +458,7 @@ export class MainMenuRoom extends PSRoom {
case 'teamupload':
if (PS.teams.uploading) {
const team = PS.teams.uploading;
+ team.teamid = response.teamid;
team.uploaded = {
teamid: response.teamid,
notLoaded: false,
diff --git a/play.pokemonshowdown.com/src/panel-popups.tsx b/play.pokemonshowdown.com/src/panel-popups.tsx
index aa9b7f5ab..f0bdbbea3 100644
--- a/play.pokemonshowdown.com/src/panel-popups.tsx
+++ b/play.pokemonshowdown.com/src/panel-popups.tsx
@@ -666,7 +666,7 @@ class OptionsPanel extends PSRoomPanel {
{this.state.showStatusInput ? (