When joining a room show already sent chat messages
This commit is contained in:
@@ -235,6 +235,10 @@
|
||||
// Seamless reconnection — sync to server state
|
||||
isReconnecting = false;
|
||||
showConnectionStatus("reconnected");
|
||||
if (msg.chatHistory) {
|
||||
chatMessages.innerHTML = "";
|
||||
msg.chatHistory.forEach((m) => addChatMessage(m.username, m.message, m.timestamp));
|
||||
}
|
||||
updateUsers(msg.users);
|
||||
if (msg.state) {
|
||||
applySync(msg.state);
|
||||
|
||||
Reference in New Issue
Block a user