mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-20 06:04:12 -04:00
Store whether the user wants to publicise their membership of a group
This commit is contained in:
parent
a1e67bcb97
commit
05e21285aa
3 changed files with 7 additions and 0 deletions
|
@ -203,12 +203,16 @@ class GroupsLocalHandler(object):
|
|||
user_id=user_id,
|
||||
)
|
||||
|
||||
# TODO: Check that the group is public and we're being added publically
|
||||
is_publicised = content.get("publicise", False)
|
||||
|
||||
token = yield self.store.register_user_group_membership(
|
||||
group_id, user_id,
|
||||
membership="join",
|
||||
is_admin=False,
|
||||
local_attestation=local_attestation,
|
||||
remote_attestation=remote_attestation,
|
||||
is_publicised=is_publicised,
|
||||
)
|
||||
self.notifier.on_new_event(
|
||||
"groups_key", token, users=[user_id],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue