mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 14:20:00 -08:00
More complete ChannelState transfer on connect.
This commit is contained in:
parent
32b13b48da
commit
c3be7e6b4f
1 changed files with 12 additions and 0 deletions
12
client.go
12
client.go
|
|
@ -541,6 +541,18 @@ func (client *Client) sendChannelTree(channel *Channel) {
|
|||
}
|
||||
}
|
||||
|
||||
if channel.Temporary {
|
||||
chanstate.Temporary = proto.Bool(true)
|
||||
}
|
||||
|
||||
chanstate.Position = proto.Int32(int32(channel.Position))
|
||||
|
||||
links := []uint32{}
|
||||
for cid, _ := range channel.Links {
|
||||
links = append(links, uint32(cid))
|
||||
}
|
||||
chanstate.Links = links
|
||||
|
||||
err := client.sendProtoMessage(MessageChannelState, chanstate)
|
||||
if err != nil {
|
||||
client.Panic(err.String())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue