Fixed bug that client cant select himself anymore

This commit is contained in:
WolverinDEV 2018-11-04 15:48:52 +01:00
parent 12860ef3ac
commit 5ffef4383d
2 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@ class ClientEntry {
return this.audioController;
}
initializeListener(){
protected initializeListener(){
if(this._listener_initialized) return;
this._listener_initialized = true;
@ -412,7 +412,9 @@ class ClientEntry {
clientIcons.append($.spawn("span").addClass("client_icon"));
tag.append(clientIcons);
return this._tag = tag;
this._tag = tag;
this.initializeListener();
return this._tag;
}
static chatTag(id: number, name: string, uid: string, braces: boolean = false) : JQuery {

View file

@ -206,7 +206,6 @@ class ChannelTree {
tag.appendTo(channel.clientTag());
channel.adjustSize(true);
client.currentChannel().reorderClients();
client.initializeListener();
channel.updateChannelTypeIcon();
return client;
@ -215,7 +214,6 @@ class ChannelTree {
registerClient(client: ClientEntry) {
this.clients.push(client);
client.channelTree = this;
client.initializeListener();
}
reorderAllClients() {