diff --git a/zephyr/static/js/compose.js b/zephyr/static/js/compose.js index 1b6b5eadb2..f925a9dc2b 100644 --- a/zephyr/static/js/compose.js +++ b/zephyr/static/js/compose.js @@ -302,7 +302,8 @@ function validate_stream_message() { // browser window doesn't know it. return true; case "not-subscribed": - if (lurk_stream.toLowerCase() === stream_name.toLowerCase()) { + if (lurk_stream !== undefined && + lurk_stream.toLowerCase() === stream_name.toLowerCase()) { // Just subscribe them. subs.subscribe_for_send(stream_name); // When the subscription request completes,