Return after sending an error
parent
a306a5e694
commit
9c290c4b8d
|
@ -293,6 +293,7 @@ const onMessage = function(event) {
|
||||||
if (!currentRoomId) {
|
if (!currentRoomId) {
|
||||||
if (!currentRoomAlias) {
|
if (!currentRoomAlias) {
|
||||||
sendError(event, "Must be viewing a room");
|
sendError(event, "Must be viewing a room");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
// no room ID but there is an alias, look it up.
|
// no room ID but there is an alias, look it up.
|
||||||
console.log("Looking up alias " + currentRoomAlias);
|
console.log("Looking up alias " + currentRoomAlias);
|
||||||
|
|
Loading…
Reference in New Issue