populus-viewer icon indicating copy to clipboard operation
populus-viewer copied to clipboard

View messages from older room version after upgrade

Open DanilaFe opened this issue 3 years ago • 3 comments

When upgrading rooms, messages from the old room version get swallowed. It would be nice if that didn't happen.

DanilaFe avatar Feb 14 '22 20:02 DanilaFe

Seems that only a subset of state events are transferred:

https://spec.matrix.org/v1.2/client-server-api/#server-behaviour-16

So perhaps in the short term populus should look back and read the subspace state off of the previous room? The fact that m.space.child isn't copied seems to be an acknowledged problem.

  • https://github.com/matrix-org/matrix-doc/pull/3385

And might already be fixed in recent synapse:

  • https://github.com/matrix-org/synapse/pull/10774

so hopefully this will eventually be solved upstream.

gleachkr avatar Feb 14 '22 21:02 gleachkr

It's unfortunate that space membership events are not preserved. Perhaps populus can do a "one-time setup" of finding and re-sending the m.space.child event to mimic server behavior if the server itself didn't send the necessary events?

DanilaFe avatar Feb 14 '22 21:02 DanilaFe

OK - after a little discussion, it's clear that the problem is with annotation room upgrades. When you hit the room's beginning, it should be possible to continue to backfill from the previous room.

gleachkr avatar Feb 14 '22 21:02 gleachkr