mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-09 02:32:14 -04:00
Use join_policy API instead of joinable
The API is now under /groups/$group_id/setting/m.join_policy and expects a JSON blob of the shape ```json { "m.join_policy": { "type": "invite" } } ``` where "invite" could alternatively be "open".
This commit is contained in:
parent
c5de6987c2
commit
eb8d8d6f57
7 changed files with 58 additions and 23 deletions
|
@ -860,9 +860,9 @@ class TransportLayerClient(object):
|
|||
@log_function
|
||||
def set_group_joinable(self, destination, group_id, requester_user_id,
|
||||
content):
|
||||
"""Sets whether a group is joinable without an invite or knock
|
||||
"""Sets the join policy for a group
|
||||
"""
|
||||
path = PREFIX + "/groups/%s/joinable" % (group_id,)
|
||||
path = PREFIX + "/groups/%s/setting/m.join_policy" % (group_id,)
|
||||
|
||||
return self.client.post_json(
|
||||
destination=destination,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue