forked from mystiq/hydrogen-web
SyntaxError fixed
This commit is contained in:
parent
66a59e6f4d
commit
b7fd22c7f9
1 changed files with 2 additions and 2 deletions
|
@ -216,9 +216,9 @@ export class RoomViewModel extends ViewModel {
|
||||||
} catch (exc) {
|
} catch (exc) {
|
||||||
if ((exc.statusCode ?? exc.status) === 400) {
|
if ((exc.statusCode ?? exc.status) === 400) {
|
||||||
this._sendError = new Error(`/join : '${roomName}' was not legal room ID or room alias`);
|
this._sendError = new Error(`/join : '${roomName}' was not legal room ID or room alias`);
|
||||||
} else if (exc.statusCode ?? exc.status) === 404 || (exc.statusCode ?? exc.status) === 502 || exc.message == "Internal Server Error") {
|
} else if ((exc.statusCode ?? exc.status) === 404 || (exc.statusCode ?? exc.status) === 502 || exc.message == "Internal Server Error") {
|
||||||
this._sendError = new Error(`/join : room '${roomName}' not found`);
|
this._sendError = new Error(`/join : room '${roomName}' not found`);
|
||||||
} else if (exc.statusCode ?? exc.status) === 403) {
|
} else if ((exc.statusCode ?? exc.status) === 403) {
|
||||||
this._sendError = new Error(`/join : you're not invited to join '${roomName}'`);
|
this._sendError = new Error(`/join : you're not invited to join '${roomName}'`);
|
||||||
} else {
|
} else {
|
||||||
this._sendError = new Error("join syntax: /join <room-id>");
|
this._sendError = new Error("join syntax: /join <room-id>");
|
||||||
|
|
Loading…
Reference in a new issue