diff --git a/src/state/manager.go b/src/state/manager.go
index 30570eb..8728ebd 100644
--- a/src/state/manager.go
+++ b/src/state/manager.go
@@ -529,6 +529,10 @@ func (m *Manager) marshalRoomState(room *Room, viewerParticipantID string) ([]by
participants := make([]PublicParticipant, 0, len(room.Participants))
for _, participant := range sortParticipants(room.Participants) {
+ if !participant.Connected {
+ continue
+ }
+
public := PublicParticipant{
ID: participant.ID,
Username: participant.Username,
diff --git a/src/templates/index.html b/src/templates/index.html
index 7be694d..c3bf564 100644
--- a/src/templates/index.html
+++ b/src/templates/index.html
@@ -9,6 +9,7 @@
+
@@ -195,6 +196,7 @@
+