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
This commit is contained in:
Srevin Saju
2021-04-01 18:21:14 +03:00
parent bb3f4297b0
commit 4adc1fc031

View File

@@ -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");