mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 21:44:56 -04:00
BF: Make /unban work again
This commit is contained in:
parent
dcf0a6fbfd
commit
3501478828
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue