From 077a788a3fbea2b83c66b41a68bc43bfb0a09588 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 9 Dec 2020 16:02:38 +0100 Subject: [PATCH] Fixed a compiling error --- shared/js/tree/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/tree/Server.ts b/shared/js/tree/Server.ts index 93bc62c4..4154e891 100644 --- a/shared/js/tree/Server.ts +++ b/shared/js/tree/Server.ts @@ -192,7 +192,7 @@ export class ServerEntry extends ChannelTreeEntry { icon_class: "client-channel_switch", name: tr("Join server text channel"), callback: () => { - this.channelTree.client.getChannelConversations().setSelectedConversation(0); + this.channelTree.client.getChannelConversations().setSelectedConversation(this.channelTree.client.getChannelConversations().findOrCreateConversation(0)); this.channelTree.client.side_bar.showChannelConversations(); }, visible: !settings.static_global(Settings.KEY_SWITCH_INSTANT_CHAT)