diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-03 18:33:36 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-03 18:33:51 +0200 |
commit | 5dd1a738f8dcd18176e606249fc461d4197d0d71 (patch) | |
tree | 1cd5ca4f939b7f596b47f5ff5f745ec723cbfc38 /webclient/room/room-controller.js | |
parent | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org has... (diff) | |
download | synapse-5dd1a738f8dcd18176e606249fc461d4197d0d71.tar.xz |
Use /rooms/$room_id/state/m.room.member/$user_id to change the membership of another user
Diffstat (limited to '')
-rw-r--r-- | webclient/room/room-controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index a26d1c72db..0ffbe8761f 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -289,7 +289,7 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput']) var user_id = args[1]; // Set his state in the room as leave - promise = matrixService.membershipChange($scope.room_id, user_id, "leave"); + promise = matrixService.setMembership($scope.room_id, user_id, "leave"); } break; @@ -314,7 +314,7 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput']) var user_id = args[1]; // Reset the user membership to leave to unban him - promise = matrixService.membershipChange($scope.room_id, user_id, "leave"); + promise = matrixService.setMembership($scope.room_id, user_id, "leave"); } break; |