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:
@@ -255,6 +255,9 @@ void ActionsHandler::postMessage(const QString &text,
|
|||||||
if (splittedText.count() > 1) {
|
if (splittedText.count() > 1) {
|
||||||
joinRoom(splittedText[0] + ":" + splittedText[1]);
|
joinRoom(splittedText[0] + ":" + splittedText[1]);
|
||||||
return;
|
return;
|
||||||
|
} else if (splittedText[0].indexOf(":") != -1) {
|
||||||
|
joinRoom(splittedText[0]);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
joinRoom(splittedText[0] + ":matrix.org");
|
joinRoom(splittedText[0] + ":matrix.org");
|
||||||
|
|||||||
Reference in New Issue
Block a user