Add checkbox to GroupAddressPicker for determining visibility of group rooms

This commit is contained in:
Luke Barnard 2017-11-07 18:51:41 +00:00
parent 80d4873542
commit edc744067f
5 changed files with 26 additions and 11 deletions

View file

@ -169,6 +169,12 @@ export default class GroupStore extends EventEmitter {
.then(this._fetchMembers.bind(this));
}
acceptGroupInvite() {
return this._matrixClient.acceptGroupInvite(this.groupId)
// The user might be able to see more rooms now
.then(this._fetchRooms.bind(this));
}
addRoomToGroupSummary(roomId, categoryId) {
return this._matrixClient
.addRoomToGroupSummary(this.groupId, roomId, categoryId)