summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-07-18 10:17:25 +0100
committerErik Johnston <erik@matrix.org>2017-07-18 10:17:25 +0100
commit3e703eb04e1b30dc2bce03d3895ac79ac24a063d (patch)
treeb946236828fafc8603203212dcc7179f705f5f33
parentRemove sync stuff (diff)
downloadsynapse-3e703eb04e1b30dc2bce03d3895ac79ac24a063d.tar.xz
Comment
-rw-r--r--synapse/storage/group_server.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/synapse/storage/group_server.py b/synapse/storage/group_server.py
index bff2324cc7..3c6ee7df68 100644
--- a/synapse/storage/group_server.py
+++ b/synapse/storage/group_server.py
@@ -762,6 +762,20 @@ class GroupServerStore(SQLBaseStore):
                                        local_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):
             # TODO: Upsert?
             self._simple_delete_txn(