Skip to content
Snippets Groups Projects
Commit 35014788 authored by Emmanuel ROHEE's avatar Emmanuel ROHEE
Browse files

BF: Make /unban work again

parent dcf0a6fb
No related branches found
No related tags found
No related merge requests found
...@@ -169,7 +169,7 @@ angular.module('matrixService', []) ...@@ -169,7 +169,7 @@ angular.module('matrixService', [])
// Change the membership of an another user // Change the membership of an another user
setMembership: function(room_id, user_id, membershipValue) { setMembership: function(room_id, user_id, membershipValue) {
return this.setMemberShipObject(room_id, user_id, { return this.setMembershipObject(room_id, user_id, {
membership : membershipValue membership : membershipValue
}); });
}, },
......
...@@ -351,7 +351,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput']) ...@@ -351,7 +351,7 @@ angular.module('RoomController', ['ngSanitize', 'matrixFilter', 'mFileInput'])
var matches = args.match(/^(\S+)$/); var matches = args.match(/^(\S+)$/);
if (matches) { if (matches) {
// Reset the user membership to "leave" to unban him // 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 { else {
$scope.feedback = "Usage: /unban <userId>"; $scope.feedback = "Usage: /unban <userId>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment