Open turt2live opened 6 years ago
events are indexed with whether or not they contains_url
so this'll be a Synapse bug :(
it'll also need some migration magic to fix this for all existing events in db
Although according to the above code null
shouldn't be true
for isinstance(event.content["url"], basestring)
This seems fine, so maybe its a fixed Synapse bug:
weird, even though its right in the db and the filter seems fine the event is in my FilePanel
ah turns out it is a Synapse bug where the is_url
"formula" is inconsistent between files
though as per the spec: it won't exclude non-truthy but instead non-string
This is actually a weird combination of a Synapse bug and a js-sdk one. So if the event was paginated in then the js-sdk bug would hit and otherwise the Synapse bug would hit.
though technically the matrix spec here could be understood to mean that "url": null
should trip this Filter,
Synapse in 2/3 places checked whether it was a string, Dendrite does not. So its a 50/50 right now. I might write a proposal to improve contains_url
to checking for a truthy string to get around this
@turt2live What would it take to resolve this issue? To do the checks in Dendrite?
I don't think this is a dendrite issue. We should either filter it out locally, or declare it a synapse bug and move it there.
Description
As per https://gitlab.gnome.org/GNOME/fractal/-/issues/101
... or to summarize the issue, an event like the following will appear in the file panel:
Version information