Return after sending an error

pull/21833/head
Kegan Dougal 2016-09-09 16:14:41 +01:00
parent a306a5e694
commit 9c290c4b8d
1 changed files with 1 additions and 0 deletions

View File

@ -293,6 +293,7 @@ const onMessage = function(event) {
if (!currentRoomId) {
if (!currentRoomAlias) {
sendError(event, "Must be viewing a room");
return;
}
// no room ID but there is an alias, look it up.
console.log("Looking up alias " + currentRoomAlias);