Refresh group rooms and members when selecting a tag

This commit is contained in:
Luke Barnard 2018-05-01 16:54:14 +01:00
parent 4d8394954c
commit 56ec7713bb
2 changed files with 20 additions and 0 deletions

View file

@ -233,6 +233,14 @@ class GroupStore extends EventEmitter {
(this._state[this.STATE_KEY.Summary][groupId] || {}).user.is_privileged : null;
}
refreshGroupRooms(groupId) {
return this._fetchResource(this.STATE_KEY.GroupRooms, groupId);
}
refreshGroupMembers(groupId) {
return this._fetchResource(this.STATE_KEY.GroupMembers, groupId);
}
addRoomToGroup(groupId, roomId, isPublic) {
return MatrixClientPeg.get()
.addRoomToGroup(groupId, roomId, isPublic)