BF: Make /unban work again
This commit is contained in:
parent
dcf0a6fbfd
commit
3501478828
|
@ -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
|
||||
});
|
||||
},
|
||||
|
|
|
@ -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>";
|
||||
|
|
Loading…
Reference in New Issue