mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 23:20:09 +03:00
Comment
This commit is contained in:
parent
508460f240
commit
3e703eb04e
1 changed files with 14 additions and 0 deletions
|
@ -762,6 +762,20 @@ class GroupServerStore(SQLBaseStore):
|
||||||
local_attestation=None,
|
local_attestation=None,
|
||||||
remote_attestation=None,
|
remote_attestation=None,
|
||||||
):
|
):
|
||||||
|
"""Registers that a local user is a member of a (local or remote) group.
|
||||||
|
|
||||||
|
Args:
|
||||||
|
group_id (str)
|
||||||
|
user_id (str)
|
||||||
|
membership (str)
|
||||||
|
is_admin (bool)
|
||||||
|
content (dict): Content of the membership, e.g. includes the inviter
|
||||||
|
if the user has been invited.
|
||||||
|
local_attestation (dict): If remote group then store the fact that we
|
||||||
|
have given out an attestation, else None.
|
||||||
|
remote_attestation (dict): If remote group then store the remote
|
||||||
|
attestation from the group, else None.
|
||||||
|
"""
|
||||||
def _register_user_group_membership_txn(txn, next_id):
|
def _register_user_group_membership_txn(txn, next_id):
|
||||||
# TODO: Upsert?
|
# TODO: Upsert?
|
||||||
self._simple_delete_txn(
|
self._simple_delete_txn(
|
||||||
|
|
Loading…
Reference in a new issue