-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forbid repeated upgrade of the same room #452
Comments
based on some internal troubleshooting over the last couple weeks, I'm not entirely convinced that we should do this. Although it's not great that people can rewrite the upgrade chain, the benefit is that when someone screws up the upgrade and it needs to be fixed it is incredibly useful to overwrite their disaster. |
How exactly is the update screwed up though? Is it a bug or just the user messing with things? Additionally, we could support rewriting the chain by redacting the tombstone event. |
I've seen both cases equally. There's not much difference in redacting a tombstone and overwriting it. |
I'd prefer redacting, assuming clients would handle it properly. |
Have we discussed whether sending any events after a |
It's normally prevented by the power level change, but not strictly enforced. Reason being the rooms we want to upgrade are great at resetting state, I think |
Is the server supposed to drop everyone to PL 0 in the room? |
Nope, just raise the requirement to send events. |
It raises it to 50, but that's going to prevent new events from being sent by mods/admins. |
Correct. It's just meant to stop clients which don't support upgrades from using the old room |
FWIW there is a sytest test asserting this: "Cannot send tombstone event that points to the same room" in |
As of this writing, the spec allows upgrading a room that already has a tombstone event. I don't think there was a provision to use the upgrade mechanism to fork rooms; so let's just disallow upgrading a room if it already has
m.room.tombstone
in its state.The text was updated successfully, but these errors were encountered: