summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-05 16:56:50 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-05 16:56:50 +0200
commit35014788282f43ba8a6d6da414dced5694027256 (patch)
treea19bcbd4051ab1145ab9da816c8611d553e4f0e6 /webclient
parentDisplay ban & kick reason (diff)
downloadsynapse-35014788282f43ba8a6d6da414dced5694027256.tar.xz
BF: Make /unban work again
Diffstat (limited to 'webclient')
-rw-r--r--webclient/components/matrix/matrix-service.js2
-rw-r--r--webclient/room/room-controller.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/webclient/components/matrix/matrix-service.js b/webclient/components/matrix/matrix-service.js
index 436ff5462a..18a4841298 100644
--- a/webclient/components/matrix/matrix-service.js
+++ b/webclient/components/matrix/matrix-service.js
@@ -169,7 +169,7 @@ angular.module('matrixService', [])
 
         // Change the membership of an another user
         setMembership: function(room_id, user_id, membershipValue) {
-            return this.setMemberShipObject(room_id, user_id, {
+            return this.setMembershipObject(room_id, user_id, {
                 membership : membershipValue
             });
         },
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index b9ba23dc48..5a2f06d8ee 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -351,7 +351,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
                     var matches = args.match(/^(\S+)$/);
                     if (matches) {
                         // Reset the user membership to "leave" to unban him
-                        promise = matrixService.setMembership($scope.room_id, args, "leave");
+                        promise = matrixService.setMembership($scope.room_id, matches[1], "leave");
                     }
                     else {
                         $scope.feedback = "Usage: /unban <userId>";