From 9c290c4b8d7a85f3c9d7a74816f3afd708de0cb4 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 9 Sep 2016 16:14:41 +0100 Subject: [PATCH] Return after sending an error --- src/ScalarMessaging.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index c3b5b59e25..bb6b4d02cb 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -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);