Open hugecheese opened 5 years ago
I thought we had an open issue for this, but I can't find it.
It's not an underlying bug: the field used to live at the top level, and when we moved it into content
, we added some code to copy it to the top level for compatibility with older clients.
We should get rid of it though.
When doing an initial
/sync
, the matrix.org homeserver returned the following event:This is a
State Event
. For some reason, it has both a top-levelmembership
field (which it probably shouldn't?), and one inside thecontent
(as required by the spec).This is particularly strange because in almost all
m.room.member
events this will not occur, but it sometimes does, returning twomembership
fields rather than one. This is harmless for clients, but there may be some underlying bug in synapse?