Add toggle to alter the visibility of a room-group association
This commit is contained in:
parent
64a369216a
commit
790db94fd7
5 changed files with 98 additions and 21 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue