From 01460d3e14382352ecf00c923602f43a8004114d Mon Sep 17 00:00:00 2001 From: Rhea Parekh Date: Mon, 18 Jun 2018 00:40:57 +0530 Subject: [PATCH] slash commands: Add /settings command. --- static/js/zcommand.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/zcommand.js b/static/js/zcommand.js index 1dc8ab5977f7d2..1a0cdc373a26ac 100644 --- a/static/js/zcommand.js +++ b/static/js/zcommand.js @@ -103,6 +103,11 @@ exports.process = function (message_content) { return true; } + if (content === '/settings') { + window.location.hash = 'settings/your-account'; + return true; + } + // It is incredibly important here to return false // if we don't see an actual zcommand, so that compose.js // knows this is a normal message.