matrix-org / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://matrix-org.github.io/dendrite/
Apache License 2.0
5.67k stars 664 forks source link

Create events shouldn't have prev_event information #1742

Open turt2live opened 3 years ago

turt2live commented 3 years ago

image

Nothing under unsigned in that screenshot should exist.

neilalexander commented 3 years ago

@Kegsay Do you know what's going on here?

kegsay commented 3 years ago

No idea. I think the syncapi sets unsigned when updating the room state table or something. https://github.com/matrix-org/dendrite/blob/9f443317bc578e1897c7eab9b4911f952f39fdbc/syncapi/consumers/roomserver.go#L378 so perhaps we see the create event twice in the roomserver output stream?

kegsay commented 3 years ago

This is almost certainly the case. We know that the roomserver can emit the same events multiple times.