Fixed some client move issues
Signed-off-by: WolverinDEV <git@teaspeak.de>
This commit is contained in:
parent
fee476da2c
commit
aadb712422
1 changed files with 10 additions and 9 deletions
|
@ -593,21 +593,22 @@ namespace connection {
|
||||||
client.currentChannel().channelId, channel_from.channelId
|
client.currentChannel().channelId, channel_from.channelId
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
|
|
||||||
let current_clients: ClientEntry[];
|
|
||||||
if(self) {
|
|
||||||
channel_from = client.currentChannel();
|
channel_from = client.currentChannel();
|
||||||
current_clients = client.channelTree.clientsByChannel(client.currentChannel());
|
|
||||||
this.connection_handler.update_voice_status(channel_to);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tree.moveClient(client, channel_to);
|
tree.moveClient(client, channel_to);
|
||||||
for(const entry of current_clients || [])
|
|
||||||
if(entry !== client && entry.get_audio_handle())
|
|
||||||
entry.get_audio_handle().abort_replay();
|
|
||||||
|
|
||||||
if(self) {
|
if(self) {
|
||||||
|
this.connection_handler.update_voice_status(channel_to);
|
||||||
|
|
||||||
|
for(const entry of client.channelTree.clientsByChannel(channel_from)) {
|
||||||
|
if(entry !== client && entry.get_audio_handle()) {
|
||||||
|
entry.get_audio_handle().abort_replay();
|
||||||
|
entry.speaking = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const side_bar = this.connection_handler.side_bar;
|
const side_bar = this.connection_handler.side_bar;
|
||||||
side_bar.info_frame().update_channel_talk();
|
side_bar.info_frame().update_channel_talk();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue