0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-09-11 04:09:34 +02:00
This commit is contained in:
Erik Johnston 2017-07-18 10:17:25 +01:00
parent 508460f240
commit 3e703eb04e

View file

@ -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(