From b7b4c519049a46b66953b7bf4d957fcd557856c6 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Wed, 5 May 2021 17:35:23 +0200 Subject: [PATCH] Fixed the channel reconnect --- shared/js/connection/HandshakeHandler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/connection/HandshakeHandler.ts b/shared/js/connection/HandshakeHandler.ts index 123dee51..6b90ec6d 100644 --- a/shared/js/connection/HandshakeHandler.ts +++ b/shared/js/connection/HandshakeHandler.ts @@ -81,7 +81,7 @@ export class HandshakeHandler { client_version: "TeaWeb " + __build.version + " (" + navigator.userAgent + ")", client_version_sign: undefined, - client_default_channel: this.parameters.defaultChannel || "", + client_default_channel: typeof this.parameters.defaultChannel === "number" ? "/" + this.parameters.defaultChannel : this.parameters.defaultChannel || "", client_default_channel_password: this.parameters.defaultChannelPassword || "", client_default_token: this.parameters.token,