-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/messages filter param should reflect that it takes a filter component, not a filter collection (SPEC-451) #199
Comments
Jira watchers: @ara4n |
Superficially /messages and /sync both take filter params. Except /sync is a 'filter collection' (which may be either an ID or a blob of JSON, and is also known as a 'filter'), whereas /messages takes a 'filter component' as a blob of JSON (sometimes called a 'filter'). At the very least, the params should be named differently, and the whole naming convention should be untangled. -- @ara4n |
It got specced by matrix-org/matrix-spec-proposals#390, but the naming convention is still mixed up |
this continues to bite me constantly (esp with LL) |
Also Documentation of Ref: |
The ultimate fix for this was to send /messages the proper kind of filter, a RoomEventFilter, rather than sending it the kind of filter that /sync expects. This is legitimately confusing, and there's even an issue about it: <https://github.com/matrix-org/matrix-doc/issues/706>. Thanks to Michael (@t3chguy) in #matrix-dev:matrix.org, who helped me identify the problem, this commit fixes the problem by using the right kind of filter for /messages. Also thanks to him for clarifying that membership events may be in both state and timeline events in a room, so calculating a displayname requires searching both. This commit tries to be more...comprehensive in doing this (perhaps more than necessary, but tidying that up can be done later if optimization is needed).
The ultimate fix for this was to send /messages the proper kind of filter, a RoomEventFilter, rather than sending it the kind of filter that /sync expects. This is legitimately confusing, and there's even an issue about it: <https://github.com/matrix-org/matrix-doc/issues/706>. This commit fixes the problem by using the right kind of filter for /messages. Thanks to Michael (@t3chguy) in #matrix-dev:matrix.org, who helped me identify the problem. Also thanks to him for clarifying that membership events may be in both state and timeline events in a room, so calculating a displayname requires searching both. This commit tries to be more...comprehensive in doing this (perhaps more than necessary, but tidying that up can be done later if optimization is needed).
Submitted by @matthew:matrix.org
also, it needs to be specced.(Imported from https://matrix.org/jira/browse/SPEC-451)
The text was updated successfully, but these errors were encountered: