Fix initial user list visibility with channelsubscribeall
This commit is contained in:
@@ -372,6 +372,13 @@ func (c *Client) handleInternalEvent(eventType string, data map[string]any) {
|
|||||||
}
|
}
|
||||||
c.channelsMu.Unlock()
|
c.channelsMu.Unlock()
|
||||||
c.emit(EventChannelList, &ChannelListEvent{Channels: chList})
|
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":
|
case "audio":
|
||||||
|
|||||||
Reference in New Issue
Block a user