summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-07-20 09:46:33 +0100
committerErik Johnston <erik@matrix.org>2017-07-20 09:46:33 +0100
commit6f443a74cf6ab0bfe452289f9888580725987765 (patch)
treec993649ca55493d35e9be821b2768dbee30531df /synapse/storage
parentComments (diff)
downloadsynapse-6f443a74cf6ab0bfe452289f9888580725987765.tar.xz
Add update group profile API
Diffstat (limited to 'synapse/storage')
-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 0a69e0f501..4197d22d88 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="create_group",
+        )
+
     def get_attestations_need_renewals(self, valid_until_ms):
         """Get all attestations that need to be renewed until givent time
         """