summary refs log tree commit diff
path: root/synapse/storage/group_server.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-07-20 17:53:39 +0100
committerGitHub <noreply@github.com>2017-07-20 17:53:39 +0100
commit04016042222c89dc604b8fb1b0e87ad4114a4a12 (patch)
tree825537967b4fd6f8992d9d79fd0f1dc78cd4a3b0 /synapse/storage/group_server.py
parentMerge pull request #2374 from matrix-org/erikj/group_server_local (diff)
parentRemove spurious content param (diff)
downloadsynapse-04016042222c89dc604b8fb1b0e87ad4114a4a12.tar.xz
Merge pull request #2377 from matrix-org/erikj/group_profile_update
Add update group profile API
Diffstat (limited to 'synapse/storage/group_server.py')
-rw-r--r--synapse/storage/group_server.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/storage/group_server.py b/synapse/storage/group_server.py
index a2e7aa47d8..ce0f513e30 100644
--- a/synapse/storage/group_server.py
+++ b/synapse/storage/group_server.py
@@ -860,6 +860,17 @@ class GroupServerStore(SQLBaseStore):
             desc="create_group",
         )
 
+    @defer.inlineCallbacks
+    def update_group_profile(self, group_id, profile,):
+        yield self._simple_update_one(
+            table="groups",
+            keyvalues={
+                "group_id": group_id,
+            },
+            updatevalues=profile,
+            desc="update_group_profile",
+        )
+
     def get_attestations_need_renewals(self, valid_until_ms):
         """Get all attestations that need to be renewed until givent time
         """