Fixed a compiling error

master
WolverinDEV 2020-12-09 16:02:38 +01:00 committed by WolverinDEV
parent 069c02a76e
commit 1253d6a4fb
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ export class ServerEntry extends ChannelTreeEntry<ServerEvents> {
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)