summary refs log tree commit diff
path: root/webclient
diff options
context:
space:
mode:
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) {