Merge pull request #2377 from matrix-org/erikj/group_profile_update

Add update group profile API
This commit is contained in:
Erik Johnston 2017-07-20 17:53:39 +01:00 committed by GitHub
commit 0401604222
5 changed files with 55 additions and 0 deletions

View file

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