Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 76144b9

Browse files
committed
Update to match is_openly_joinable API
1 parent 929718b commit 76144b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/structures/GroupView.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,10 @@ export default React.createClass({
550550
editing: true,
551551
profileForm: Object.assign({}, this.state.summary.profile),
552552
joinableForm: {
553-
policyType: this.state.summary.profile.join_policy,
553+
policyType:
554+
this.state.summary.profile.is_openly_joinable ?
555+
GROUP_JOINPOLICY_OPEN :
556+
GROUP_JOINPOLICY_INVITE,
554557
},
555558
});
556559
dis.dispatch({

0 commit comments

Comments
 (0)