From 4adc1fc031ec464a741e49e3f23274be06141db0 Mon Sep 17 00:00:00 2001 From: Srevin Saju Date: Thu, 1 Apr 2021 18:21:14 +0300 Subject: [PATCH] fix: do not append your homeserver to the /join command if the id has a homeserver included neochat tries to append :matrix.org if the homeserver is matrix.org for a command like ` /join #chat:kde.org` internally tries to join #chat:kde.org:matrix.org instead --- src/actionshandler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 8d9067f0e..254e4195d 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -255,6 +255,9 @@ void ActionsHandler::postMessage(const QString &text, if (splittedText.count() > 1) { joinRoom(splittedText[0] + ":" + splittedText[1]); return; + } else if (splittedText[0].indexOf(":") != -1) { + joinRoom(splittedText[0]); + return; } else { joinRoom(splittedText[0] + ":matrix.org");