diff --git a/client/components/InlineChannel.vue b/client/components/InlineChannel.vue index 6a0b072e..82edb4f8 100644 --- a/client/components/InlineChannel.vue +++ b/client/components/InlineChannel.vue @@ -18,8 +18,7 @@ export default { ); if (existingChannel) { - const $ = require("jquery"); - $(`#sidebar .chan[data-id="${existingChannel.id}"]`).trigger("click"); + this.$router.push("chan-" + existingChannel.id); } // TODO: Required here because it breaks tests diff --git a/client/components/JoinChannel.vue b/client/components/JoinChannel.vue index 7d0e1669..bf1cc905 100644 --- a/client/components/JoinChannel.vue +++ b/client/components/JoinChannel.vue @@ -65,8 +65,7 @@ export default { ); if (existingChannel) { - const $ = require("jquery"); - $(`#sidebar .chan[data-id="${existingChannel.id}"]`).trigger("click"); + this.$router.push("chan-" + existingChannel.id); } else { const chanTypes = this.network.serverOptions.CHANTYPES; let channel = this.inputChannel;