Skip to content
This repository was 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

NegativeMjark added a commit that referenced this pull request Dec 22, 2015
Add top level filters for filtering by room id

Documented by matrix-org/matrix-spec-proposals#246
@NegativeMjark NegativeMjark merged commit e525b46 into develop Dec 22, 2015
@erikjohnston erikjohnston deleted the markjh/room_filtering branch January 12, 2016 16:52
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