Skip to content

Commit

Permalink
slash commands: Add /settings command.
Browse files Browse the repository at this point in the history
  • Loading branch information
rheaparekh committed Jun 27, 2018
1 parent f5999a9 commit 01460d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/js/zcommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 01460d3

Please sign in to comment.