From 277fd2250ac82d8471090f66f45cb61153bcfc1a Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Wed, 3 Sep 2014 15:58:28 +0200 Subject: Added /unban $user_id --- webclient/room/room-controller.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'webclient') 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) { -- cgit 1.4.1