mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-29 20:06:14 -05:00
Added /unban $user_id
This commit is contained in:
parent
073a42cc95
commit
277fd2250a
@ -298,6 +298,16 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
|
|||||||
}
|
}
|
||||||
break;
|
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":
|
case "/op":
|
||||||
// Define the power level of an user
|
// Define the power level of an user
|
||||||
if (3 === args.length) {
|
if (3 === args.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user