summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 15:58:28 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-03 15:58:40 +0200
commit277fd2250ac82d8471090f66f45cb61153bcfc1a (patch)
tree4048f20301b5907a4f3bcbcbe911d475ec2b553b /webclient
parentAdd support for room names (diff)
downloadsynapse-277fd2250ac82d8471090f66f45cb61153bcfc1a.tar.xz
Added /unban $user_id
Diffstat (limited to 'webclient')
-rw-r--r--webclient/room/room-controller.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index f07d086e4a..69305c7fa9 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -298,6 +298,16 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
                     }
                     break;
                     
+                case "/unban":
+                    // Unban the user id from the room
+                    if (2 === args.length) {
+                        var user_id = args[1];
+
+                        // Reset the user membership to leave to unban him
+                        promise = matrixService.membershipChange($scope.room_id, user_id, "leave");
+                    }
+                    break;
+                    
                 case "/op":
                     // Define the power level of an user
                     if (3 === args.length) {