From e7eff5da240f8df7f8d4754406e18fc04bc4e481 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 25 Nov 2018 13:57:48 +0100 Subject: [PATCH] Fixed keeped avatar after disconnect --- shared/js/client.ts | 3 ++- shared/js/ui/frames/SelectedItemInfo.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/js/client.ts b/shared/js/client.ts index 67c8d0ce..d661fb26 100644 --- a/shared/js/client.ts +++ b/shared/js/client.ts @@ -238,10 +238,11 @@ class TSClient { break; } - this.selectInfo.setCurrentSelected(null); this.channelTree.reset(); this.voiceConnection.dropSession(); if(this.serverConnection) this.serverConnection.disconnect(); this.controlBar.update_connection_state(); + this.selectInfo.setCurrentSelected(null); + this.selectInfo.update_banner(); } } \ No newline at end of file diff --git a/shared/js/ui/frames/SelectedItemInfo.ts b/shared/js/ui/frames/SelectedItemInfo.ts index cafd3236..7e687532 100644 --- a/shared/js/ui/frames/SelectedItemInfo.ts +++ b/shared/js/ui/frames/SelectedItemInfo.ts @@ -148,6 +148,7 @@ class Hostbanner { private generate_tag?() : Promise> { if(!this.client.connected) return undefined; + const server = this.client.channelTree.server; if(!server) return undefined; if(!server.properties.virtualserver_hostbanner_gfx_url) return undefined;