Merge pull request #1592 from matrix-org/luke/groups-fix-accept-invite-refresh-members

Fetch group members after accepting an invite
pull/21833/head
Luke Barnard 2017-11-08 13:35:53 +00:00 committed by GitHub
commit 65cea53f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -172,7 +172,9 @@ export default class GroupStore extends EventEmitter {
acceptGroupInvite() {
return this._matrixClient.acceptGroupInvite(this.groupId)
// The user might be able to see more rooms now
.then(this._fetchRooms.bind(this));
.then(this._fetchRooms.bind(this))
// The user should now appear as a member
.then(this._fetchMembers.bind(this));
}
addRoomToGroupSummary(roomId, categoryId) {