Fix initial user list visibility with channelsubscribeall

This commit is contained in:
Jose Luis Montañes Ojados
2026-01-16 23:00:03 +01:00
parent ca7840ad66
commit 2611a71021

View File

@@ -372,6 +372,13 @@ func (c *Client) handleInternalEvent(eventType string, data map[string]any) {
}
c.channelsMu.Unlock()
c.emit(EventChannelList, &ChannelListEvent{Channels: chList})
// Subscribe to all channels to see users
// This fixes the issue where users are invisible until joining the channel
if c.internal != nil {
log.Println("Received channel list. Subscribing to all channels...")
c.internal.SendCommandString("channelsubscribeall")
}
}
case "audio":