From 31be27515c196409d6ff280740bd871bcb47b759 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 9 Nov 2017 16:28:21 +0000 Subject: [PATCH] Modify the group room visibility API to reflect the js-sdk changes See https://github.com/matrix-org/matrix-js-sdk/pull/569 --- src/components/views/groups/GroupRoomInfo.js | 2 +- src/stores/GroupStore.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/groups/GroupRoomInfo.js b/src/components/views/groups/GroupRoomInfo.js index 3f0b0067d2..6241a2e357 100644 --- a/src/components/views/groups/GroupRoomInfo.js +++ b/src/components/views/groups/GroupRoomInfo.js @@ -137,7 +137,7 @@ module.exports = React.createClass({ const groupId = this.props.groupId; const roomId = this.props.groupRoomId; const roomName = this.state.groupRoom.displayname; - this._groupStore.updateGroupRoomAssociation(roomId, isPublic).catch((err) => { + this._groupStore.updateGroupRoomVisibility(roomId, isPublic).catch((err) => { console.error(`Error whilst changing visibility of ${roomId} in ${groupId} to ${isPublic}`, err); const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createTrackedDialog('Failed to remove room from group', '', ErrorDialog, { diff --git a/src/stores/GroupStore.js b/src/stores/GroupStore.js index fdd776f74d..cb8b77ceb7 100644 --- a/src/stores/GroupStore.js +++ b/src/stores/GroupStore.js @@ -150,9 +150,9 @@ export default class GroupStore extends EventEmitter { .then(this._fetchRooms.bind(this)); } - updateGroupRoomAssociation(roomId, isPublic) { + updateGroupRoomVisibility(roomId, isPublic) { return this._matrixClient - .updateGroupRoomAssociation(this.groupId, roomId, isPublic) + .updateGroupRoomVisibility(this.groupId, roomId, isPublic) .then(this._fetchRooms.bind(this)); }