From a3312ec8ff0aab7e5312c698373275b03b085155 Mon Sep 17 00:00:00 2001 From: encrypt Date: Thu, 26 Mar 2020 17:56:21 +0100 Subject: [PATCH] append / to the beginning of channelName if it is not present --- app/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/index.js b/app/index.js index b2b229b..27c2414 100644 --- a/app/index.js +++ b/app/index.js @@ -382,6 +382,10 @@ class GlobalBindings { window.matrixWidget.setAlwaysOnScreen(true) // Register all channels, recursively + + if(channelName.indexOf("/") != 0) { + channelName = "/"+channelName; + } const registerChannel = (channel, channelPath) => { this._newChannel(channel) console.log(channelPath)