-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Conversation
synapse/storage/group_server.py
Outdated
"group_id": group_id, | ||
}, | ||
updatevalues=profile, | ||
desc="create_group", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the "desc" be "update_group"?
synapse/groups/groups_server.py
Outdated
for keyname in ("name", "avatar_url", "short_description", | ||
"long_description"): | ||
if keyname in content: | ||
profile[keyname] = content[keyname] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe check that the values are "strings" otherwise postgresql might become sad when we try to insert them, and sqlite will probably do weird things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also update the comment on GroupServlet to get/set if we're being picky
@@ -342,6 +342,25 @@ def get_group_profile(self, group_id, requester_user_id): | |||
raise SynapseError(404, "Unknown group") | |||
|
|||
@defer.inlineCallbacks | |||
def update_group_profile(self, group_id, requester_user_id, content): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spurious 'content' param?
No description provided.