mirror of
https://github.com/element-hq/synapse
synced 2024-09-12 02:25:10 +00:00
SYWEB-152: Unbreak /me
This commit is contained in:
parent
8ce69e802d
commit
5180285456
1 changed files with 6 additions and 2 deletions
|
@ -435,9 +435,13 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput', 'a
|
||||||
// Store the command in the history
|
// Store the command in the history
|
||||||
history.push(input);
|
history.push(input);
|
||||||
|
|
||||||
var promise = commandsService.processInput($scope.room_id, input);
|
|
||||||
var echo = false;
|
|
||||||
var isEmote = input.indexOf("/me ") === 0;
|
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
|
if (!promise) { // not a non-echoable command
|
||||||
echo = true;
|
echo = true;
|
||||||
|
|
Loading…
Reference in a new issue