Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add published room list edit API #657

Merged
merged 3 commits into from
Mar 22, 2016
Merged

Add published room list edit API #657

merged 3 commits into from
Mar 22, 2016

Conversation

erikjohnston
Copy link
Member

No description provided.

@@ -317,3 +317,19 @@ def _user_can_delete_alias(self, alias, user_id):

is_admin = yield self.auth.is_server_admin(UserID.from_string(user_id))
defer.returnValue(is_admin)

@defer.inlineCallbacks
def edit_published_room_list(self, requester, room_id, visibility):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add some doc string

@NegativeMjark
Copy link
Contributor

Code LGTM. Some sytests would be nice. ["published", "unpublished"] or ["published", "hidden"] might be better words than ["public", "private"].

@erikjohnston
Copy link
Member Author

Some sytests would be nice.

That's on the radar

["published", "unpublished"] or ["published", "hidden"] might be better words than ["public", "private"].

Unpublished might be better than private, but the intent here is to allow various other values for the visibility, e.g. "local_server" or whatever, so I don't think "published" really conveys what's going on.

erikjohnston added a commit that referenced this pull request Mar 22, 2016
Add published room list edit API
@erikjohnston erikjohnston merged commit d6ac752 into develop Mar 22, 2016
@richvdh richvdh deleted the erikj/roomlist branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants