summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 15:25:59 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 15:25:59 +0200
commitc06d07a2769e49cef8619bea6112bd2f938f0f2f (patch)
tree9af3623a718d69a3d779bf04de43d77d4a4dc2ce /webclient/room/room-controller.js
parentDo not define power level limits in setUserPowerLevel. Update the function to... (diff)
downloadsynapse-c06d07a2769e49cef8619bea6112bd2f938f0f2f.tar.xz
Send unrecognized commands as text message (as before)
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r--webclient/room/room-controller.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 77e93e8930..f07d086e4a 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -316,7 +316,8 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
                     break;
             }
         }
-        else {
+        
+        if (!promise) {
             // Send the text message
             promise = matrixService.sendTextMessage($scope.room_id, $scope.textInput);
         }