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

Add top level filters for filtering by room id #454

Merged
merged 1 commit into from
Dec 22, 2015

Conversation

NegativeMjark
Copy link
Contributor

if type(definition[key]) != list:
raise SynapseError(400, "Expected %s to be a list." % key)
for room_id in definition[key]:
RoomID.from_string(room_id)
Copy link
Member

Choose a reason for hiding this comment

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

Please document the expected side effect here (that it will throw if it is an invalid room ID), else this looks very magical and doesn't intuitively look like it is doing what the docstrings describe.

@kegsay
Copy link
Member

kegsay commented Dec 22, 2015

LGTM other than comments

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.

2 participants