From 1e586428acbdf316e22e2196dcac4e0f1f54a1bf Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 6 Apr 2018 14:58:10 +0100 Subject: [PATCH] Update to match is_openly_joinable API --- src/components/structures/GroupView.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 8f2087cadf..8884396c01 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -549,7 +549,10 @@ export default React.createClass({ editing: true, profileForm: Object.assign({}, this.state.summary.profile), joinableForm: { - policyType: this.state.summary.profile.join_policy, + policyType: + this.state.summary.profile.is_openly_joinable ? + GROUP_JOINPOLICY_OPEN : + GROUP_JOINPOLICY_INVITE, }, }); dis.dispatch({