Skip to content
Snippets Groups Projects
Commit 51802854 authored by Kegan Dougal's avatar Kegan Dougal
Browse files

SYWEB-152: Unbreak /me

parent 8ce69e80
No related branches found
No related tags found
No related merge requests found
......@@ -435,9 +435,13 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
// Store the command in the history
history.push(input);
var promise = commandsService.processInput($scope.room_id, input);
var echo = false;
var isEmote = input.indexOf("/me ") === 0;
var promise;
if (!isEmote) {
promise = commandsService.processInput($scope.room_id, input);
}
var echo = false;
if (!promise) { // not a non-echoable command
echo = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment