mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 01:44:58 -05:00
Document set_group_join_policy
This commit is contained in:
parent
eb8d8d6f57
commit
b214a04ffc
@ -31,6 +31,12 @@ _DEFAULT_ROLE_ID = ""
|
||||
|
||||
class GroupServerStore(SQLBaseStore):
|
||||
def set_group_join_policy(self, group_id, join_policy):
|
||||
"""Set the join policy of a group.
|
||||
|
||||
join_policy can be one of:
|
||||
* "invite"
|
||||
* "open"
|
||||
"""
|
||||
return self._simple_update_one(
|
||||
table="groups",
|
||||
keyvalues={
|
||||
|
Loading…
Reference in New Issue
Block a user