-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Filters don't work #4299
Comments
I also had trouble with the "limit" filter (which returned everything) and the "types" filter in rooms.account_data and that seemed to filter nothing. The "senders" filter does work and I have been using this to remove fields from my search results:
This gives me only the account data for my rooms, but I still have account_data of types other than m.tag. |
Here's the full range of my testing:
|
Ok, so I think I've figured out the issues with broken account_data in the room object:
However, on line 1718, the account_data_events variable is used instead of the filtered version. I suppose it would make sense to change the account_data assignment to assign to the original account_data_events:
Now, this only fixes part of the problem, but still, it's a start. Let me know if I'm wrong about any of this! EDIT: You'd also have to change line 1677-1678:
|
@turt2live @KB1RD @richvdh Can this be closed out with #4309? |
I believe #4309 only fixes part of it. It would be good to update this issue (or possibly better yet, open a new one) with what is left, though. |
sorry, I missed the comments from December ._. I think there's still more - will track down the problems and open issues. Do people prefer checklists or distinct numbers? |
This appears to be mainly isolated to |
Closing in favour of #7306 then |
I tested with this filter:
I expected a very small response, particularly because I filter almost everything out. However, I end up getting a full sync response (with all my rooms). I also shouldn't have to supply the
types
ornot_types
(those are me trying to figure out why thelimit
doesn't work), androoms: []
should surely prevent all rooms.The text was updated successfully, but these errors were encountered: