Fixed a compiling error

This commit is contained in:
WolverinDEV 2020-12-09 16:02:38 +01:00
parent a3b9b1b11e
commit 077a788a3f

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)