Add toggle to alter the visibility of a room-group association

This commit is contained in:
Luke Barnard 2017-11-02 13:25:55 +00:00
parent 64a369216a
commit 790db94fd7
5 changed files with 98 additions and 21 deletions

View file

@ -141,9 +141,15 @@ export default class GroupStore extends EventEmitter {
return this._summary.user ? this._summary.user.is_privileged : null;
}
addRoomToGroup(roomId) {
addRoomToGroup(roomId, isPublic) {
return this._matrixClient
.addRoomToGroup(this.groupId, roomId)
.addRoomToGroup(this.groupId, roomId, isPublic)
.then(this._fetchRooms.bind(this));
}
updateGroupRoomAssociation(roomId, isPublic) {
return this._matrixClient
.updateGroupRoomAssociation(this.groupId, roomId, isPublic)
.then(this._fetchRooms.bind(this));
}