Fix group membership publicity
* Read the new flag in the summary API (the one we were reading was actually whether the group server listed you as a member to non-members). * Remove call to now-dead _loadGroupFromServer andf use the store instead
This commit is contained in:
parent
79af97011c
commit
8d0983ab02
3 changed files with 16 additions and 12 deletions
|
@ -68,4 +68,10 @@ export default class GroupSummaryStore extends EventEmitter {
|
|||
.removeUserFromGroupSummary(this._groupId, userId)
|
||||
.then(this._fetchSummary.bind(this));
|
||||
}
|
||||
|
||||
setGroupPublicity(is_published) {
|
||||
return this._matrixClient
|
||||
.setGroupPublicity(this._groupId, is_published)
|
||||
.then(this._fetchSummary.bind(this));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue